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

Re: When does 'svn:keywords' get applied

From: Stephan Hennig <mailing_list_at_arcor.de>
Date: 2005-06-06 12:53:37 CEST

Michael Hipp schrieb:

> If the latter, how do I make sure my "main" file always shows the
> most current revision of my *project* and not of that file?

The post-commit hook script gets the new revision number as second
argument. You can write that out to a file and include the file later in
your sources. Question is where to write the file(s) since post-commit
doesn't know the paths of checked out working copies (suggestions
welcome!). If there is only one user you might control the place via an
environment variable.

But notice, because there is no point in versioning that file (its
content would be off by one in the repository) that file might be missed
after a fresh check-out. The advantage to svnversion is you don't need
to run an additional program within every build process.

Regards,
Stephan Hennig

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 6 14:32:14 2005

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.