bsb has asked for the wisdom of the Perl Monks concerning the following question:
The most useful thing we've found so far is an E::MM::FAQ example although there's probably more out there (googling subversion, perl and version is a mess). This quote explains some issues with svn and svk:
In SVN, $Revision$ should be the same for every file in the project so they would all have the same $VERSION. CVS and RCS have a different $Revision$ per file so each file will have a differnt $VERSION. Distributed version control systems, such as SVK, may have a different $Revision$ based on who checks out the file leading to a different $VERSION on each machine! Finally, some distributed version control systems, such as darcs, have no concept of revision number at all.The CVS incantation I used to use was:
# CVS exmample $VERSION = sprintf "%d.%03d", q$Revision: 1.1 $ =~ /(\d+)/g;
Subversion has keyword substitution but, as mentioned above, it's handled differently to cvs.
What tips do you have a automatically managing version?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Automatic $VERSION updates and subversion tips?
by kyle (Abbot) on Feb 18, 2008 at 13:06 UTC | |
|
Re: Automatic $VERSION updates and subversion tips?
by proceng (Scribe) on Feb 18, 2008 at 15:13 UTC | |
by tilly (Archbishop) on Feb 19, 2008 at 07:05 UTC | |
|
Re: Automatic $VERSION updates and subversion tips?
by tilly (Archbishop) on Feb 19, 2008 at 07:20 UTC | |
by bsb (Priest) on Feb 20, 2008 at 00:32 UTC |