[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Getting the high revision number

From: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2006-08-01 22:31:13 CEST

Reedick, Andrew wrote:
> From: Robert Wenner [mailto:robert.wenner@atsec.com]
>> Why not use svnversion, maybe in combination with a regex to
>> just get one of the numbers?
>
> Good point. I didn't even notice that svnversion existed until
> now. =P OTOH, svnversion only works against the working copy. In my
> experience, you should know what revision you want to build _before_ you
> create the working copy...

Knowing what revision you *want* to build and using svnversion to obtain
the number you use for versioning need not be mutually exclusive.

If I may add a point of experience: using svnversion is a very good idea
because it tells you what you *are* building, not what you *think, or
wanted* to build.

Network outtages, locked files, conflicted files (some bad person
mucking in build tree), and you can imagine what all else work together
to try to try to make the revision you specified different from what you
actually end up with on disk. Using svnversion can foil the evil plot,
alerting you of the discrepancy.

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 1 22:30:43 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.