On Mon, 30 Apr 2007, Ronny Völker wrote:
> Hello,
>
> 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.
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.
Right, and the 1.0 line wasn't branch until r10, so doesn't exist at r5.
> 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?
No -- it's assumed that you'll refer to revisions which actually exist
at a path when using peg revisions.
- application/pgp-signature attachment: stored
Received on Mon Apr 30 16:35:02 2007