"Daniel Patterson" wrote:
> That's a good thing to avoid. Has anyone considered calculating the
> version number
> based on a "$HeadURL$" keyword? (Work out if it's trunk or a tag at
> build time)
>
> I can't think of a good way to say "Subversion DEV build from Trunk at
> Rev 11355"
> without having a new keyword like "$WCRev$" that gets updated on
every
> "svn up" ($LastChangedRevision$ doesn't quite do it, unless you update
> the file on every commit).
SubWCRev (available on the TSVN site) will scan your WC for the highest
revision number, so it doesn't rely on a updating a file every commit.
It's a command line tool, but it only works on the Windows platform, so
probably won't be much help here.
It would be even better if this sort of tool were provided directly by
subversion so it can be used on many platforms. Sadly I don't have
enough knowledge to do that myself.
No generic tool will be able to tell if something is on trunk, branch or
tag, except by trying to interpreting the meaning of the URL - fine if
you know they will always be called trunk/branches/tags, but that scheme
is not mandatory. But maybe the build script could do it.
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 14 12:13:39 2004