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

Re: Is label support in future release?

From: Thomas Wicklund <wicklund_at_eskimo.com>
Date: 2006-11-16 17:42:53 CET

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

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.