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

Re: Compare WC with a URL

From: Michael Sinz <Michael.Sinz_at_sinz.org>
Date: 2005-12-02 16:12:36 CET

On 12/2/05, Marc Sherman <msherman@projectile.ca> wrote:
> Jim Blandy wrote:
> >
> > Doesn't this come up from time to time? Would it be worth doing
> > something like the patch below? I'm open to alternatives to the ugly
> > double-error construction, but the output does look the way it should:
> >
> > $ ./svn diff . http://svn.collab.net/repos/svn/trunk/subversion/svn
> > svn: Target lists to diff may not contain both working copy paths and URLs
> > svn: Consider using the '--old' and '--new' options
>
> Why does that restriction exist in the first place? Couldn't the old
> and new targets be worked out implicitly from that list?

It would be difficult since I regularly do an svn diff with a list
of local files to only get the diff/patch for those files.

Now, maybe this could be "figured out" if one of the arguments is
within a WC and the other is within a repository. Thus, this specific
error would be converted to a diff --old/--new if and only if there
are only 2 files listed (one being the URL and one being WC)

(Maybe that is not that hard to check for - once the error is about
to fire, if there are only 2 files in the list then assume old/new)

--
Michael Sinz               Technology and Engineering Director/Consultant
"Starting Startups"                          mailto:Michael.Sinz@sinz.org
My place on the web                      http://www.sinz.org/Michael.Sinz
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 2 16:14:17 2005

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