The just-committed revision appears to be passed as an argument to the
post-commit script. It should be fairly easy to write a script to do
this from post-commit.
Daniel
Quoting Max Bowsher <maxb@ukf.net>:
> 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
>
>
---------------------------------------------------------------------
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:30:01 2004