Nikki Locke writes:
> Tim Hill wrote:
> > I agree .. *getting* the rev# was not the issue, though. It was what
> > I do with it when I've got it:
> >
> > Workflow 1 (today):
> > (1) enter: svn info <some-url>
> > (2) manually scan the output for the rev#, call it X
> > (3) enter: svn diff foo.c -r X:HEAD
> >
> > Workflow 2 (with proposed feature):
> > (1) enter: svn diff foo.c -r <some-url>:HEAD
>
> I had assumed svn would allow you to do
>
> svn diff foo.c <some-url>
>
> but it seems to give the error message:
> svn: Target lists to diff may not contain both working copy paths and URLs
>
> Why is this disallowed? It is such an obvious requirement, and would solve
> most of the use cases of people who want labels.
You need to use something like:
svn diff --old foo.c --new <some-url>
Working copy paths are only allowed in the --old or --new arguments.
I've been tripped up by this a few times, I now always use --new and
--old for differences.
I have seen strange things even with these parameters where the
working copy is used when I don't think it should be (or a committed
copy when I think it should be the working copy), however I haven't
been able to track down whether there's a problem in SVN or if I'm
confused.
Thomas Wicklund
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 16 17:57:31 2006