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

Idea for specifying revisions

From: Garrick Olson <Garrick.Olson_at_Aceva.com>
Date: 2004-02-18 08:34:28 CET

Has anyone considered allowing "arithmetic" as part of the "-r" option?

For example:

$ svn log -r HEAD:HEAD-10 foo
$ svn log -r 123:123+5 bar

I was thinking it would be most useful if the "arithmetic" was based on
actually changed revisions rather than simply revision numbers. Thus,
the examples above would mean "show me the last 10 changes to foo", and
"show the first five changes to bar following revision 123" (which would
*not* be the same as -r 123:128).

Is there an alternative way to ask the first question?

I often want to ask "what were the last X changes to Y", but this
actually seems a bit difficult. I have to find out what the head
revision is, and start subtracting, but since revision numbers are
global for the repository, I can't just subtract X from the head
revision.

Of course I can just use the default of -r HEAD:1, and then use head,
but the log messages are of arbitrary size, and if I have a large number
of revisions (suppose I had tens of thousands of revisions), HEAD:1
starts to look a bit extreme.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 18 08:34:43 2004

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.