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

Re: Current Updated Revision Number

From: Max Bowsher <maxb_at_ukf.net>
Date: 2003-09-06 00:53:20 CEST

>>>> Peter Childs wrote:
>>>> How do I get last revision number for my repository. The keywords
>>>> only seam to handle when that file was last changed. What I would like
to
>>>> do is see the revision number on the repository and then use it in my
>>>> code to see who which version a user is using.
>>>> So I can then commit, compile, and have my source code
>>>> auto-versioned...

>> On Fri, 5 Sep 2003 e.huelsmann@gmx.net wrote:
>>> you might use the svnversion command to do this:
>>> compile using gcc -DVERSION=`svnversion .`
>>> There currently is no keyword which is substituted with the output from
>>> svnversion.

> On Fri, 5 Sep 2003, Peter Childs wrote:
>> Super a keyword might be useful one day however.... maybe a TODO
>> is in order.

Bill Comisky wrote:
> I didn't see any issues pertaining to the single-revision-working-copy
> revision keyword. I've seen this pop up on the list several times,
> and personally am interested in this feature. Would it be reasonable to
> file an "enhancement" issue for this?

Implementing such a keyword would require significant special case
behaviour: Subversion would have to update files containing this keyword
every time the repo revision changed, even though the file contents in the
repo had not.

It would be wise to discuss on dev@ whether such special-casing would ever
be acceptable, before filing an issue.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 6 00:54:12 2003

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

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