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

Re: Commiting file which contains the next revision number

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-12-16 19:07:08 CET

edA-qa wrote:
> Is there a way to either get the next revision number, or better, to
> specify a tag in a file such than when the file is committed the tag is
> replaced with the revision in which it was commited.
>
> By Example:
> File <changes.txt>
> -Added support for x ($NextRevision$)
>
> Stored file:
> -Added support for x (348)
>
> I need/want this since I have (as shown) a changes log that I would like
> to track the revision number each change is made in (of course if do a
> commit first to get a number, then I need to recommit to store that
> number for the changes file).
>
> I've tried searching through the archives, but I can't think of the
> keywords to sort out what I want (so many posts with "revision" in them).

Sorry, such a feature does not exist. Indeed, it would be pretty much
impossible to implement within the current architecture of Subversion, since
the final revision number is not known until *after* the new file data has
been written into the repository.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 16 19:15:22 2004

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.