lib/version.php needs to include svn version

Author Message

Paul Forsyth

Tuesday 13 May 2003 8:17:04 am

It would be nice if an extra line was added to lib/version.php to show the svn version in use.

Im not sure about relevant svn directives but i assume there is something that will text replace some variable in a text file, much like cvs does with $$ directives.

Of course, this doesn't need to be present in a full release.

Paul

Bård Farstad

Saturday 19 June 2004 12:20:12 pm

There is a feature in svn to replace variables with the version number. However it only updates the file if it's actually commited. So this will not work.

Mabye there is a way to configure svn to force update of this number even if other files are commited.

--bård

Documentation: http://ez.no/doc

Paul Forsyth

Tuesday 29 June 2004 12:00:54 pm

I remember with CVS you could perform defined actions upon a commit. Here we could update lib/version.php. This is a little heavy though for regular checkins.

An alternative would be to put the $id$ string into the changelog, and if some 'unstable/unreleased' flag is set the setup/info view could query the id string from the changelog. The changelog is regularly updated and may be an alternative to lib/version.php which would be used for 'stable/releases'.

paul

--
http://www.visionwt.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:43:31
Script start
Timing: Jan 18 2025 02:43:31
Module start 'layout'
Timing: Jan 18 2025 02:43:31
Module start 'content'
Timing: Jan 18 2025 02:43:32
Module end 'content'
Timing: Jan 18 2025 02:43:32
Script end

Main resources:

Total runtime0.5857 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0194 589.1641152.6406
Module start 'layout' 0.01940.0031 741.804739.4766
Module start 'content' 0.02250.5616 781.2813531.4219
Module end 'content' 0.58410.0015 1,312.70318.1250
Script end 0.5857  1,320.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6074160.0002
Check MTime0.00150.2496160.0001
Mysql Total
Database connection0.00080.139810.0008
Mysqli_queries0.523989.4419570.0092
Looping result0.00060.0964550.0000
Template Total0.529690.420.2648
Template load0.00220.373020.0011
Template processing0.527490.046520.2637
Template load and register function0.00030.048610.0003
states
state_id_array0.00190.327810.0019
state_identifier_array0.00200.342520.0010
Override
Cache load0.00210.3502180.0001
Sytem overhead
Fetch class attribute can translate value0.00130.220720.0006
Fetch class attribute name0.00150.251740.0004
XML
Image XML parsing0.00300.504320.0015
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00300.5192170.0002
String conversion0.00000.002140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs