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

svn diff and peg revisions

From: Ronny Völker <ronny.voelker_at_elaxy.com>
Date: 2007-04-30 16:17:44 CEST


the behavior of the diff command in svn1.4 irritates me in a particular case.
I'm not sure whether it's a bug or I should better have asked this question in
the users list.

Here is the case:

I have a repository containing a trunk , one branch v1.0 and one tag v1.0.0.
v1.0 was branched from trunk in revision 10.
v1.0.0 was created from v1.0 in r20.
The head revision of the repository is 30.

I want to display the differences of v1.0 at r5 and the tag v1.0.0.
Or more technical:
Display the differences of the node, referenced by the path 'branches/v1.0' in
HEAD, at revision 5 and the node, referenced by the path 'tags/v1.0.0' in HEAD,
at revision HEAD.

The command
svn diff --old=http://branches/v1.0@5 --new=http://tags/v1.0.0
returns something like: 'http://branches/v1.0 was not found in revision 5'.
This sounds reasonable, because @5 could be interpreted as a peg revision.

So I would have to use -r to enter my operative revisions:
svn diff -r5:head --old=http://branches/v1.0@head --new=http://tags/v1.0.0@head
But this doesn't work either.

So is there a command to do this diff without explicitly referring to http://trunk?

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 30 16:18:10 2007

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.