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

print out what special revision names resolve to

From: Vlad Skvortsov <vss_at_73rus.com>
Date: 2007-08-07 00:59:10 CEST

Hi!

I wish there was a way to figure out which revision number was
substituted in place of a special revision keyword (e.g. HEAD). For
example, when doing a merge one could invoke svn as:

$ svn merge -r1234:HEAD $BRANCH

After the command finishes there is no way to know what HEAD was at the
time of execution (for example, to write the number down to a log). Of
course one could a) look the number up in 'svn log' but there is a race
condition here (someone could commit a new revision before 'svn merge'
was invoked); b) invoke 'svn merge' with specific revision number but
this defeats the whole purpose of having keywords like 'HEAD'.

Are there any other ways I'm missing?

May be svn should print out the operating revision range? E.g.,

$ svn merge -r1234:HEAD $BRANCH
...
A some/file
* revisions 1234:2345

For consistency (and machine-parseability) 'svn up' could go the same way:
$ svn up
...
U another/one
* revisions 2345:2347

(I understand that with mixed-revision working copies the first number
may not be meaningful)

Here I use '*' to denote an AV pair, where attribute and value are
space-separated.

Comments?

-- 
Vlad Skvortsov, vss_at_73rus.com, http://vss.73rus.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 7 00:57:24 2007

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