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

Re: Diff against a file that doesn't exist in HEAD?

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: 2006-03-14 03:30:27 CET

On 3/13/06, Ben Collins-Sussman <sussman@red-bean.com> wrote:
> On 3/13/06, Justin Erenkrantz <justin@erenkrantz.com> wrote:
> > While trying to figure out why ra_serf was bailing on a diff case, I
> > found out that ra_dav has the same problem (aha!):
> >
> > % svn diff -r17500:17525
> > http://svn.collab.net/repos/svn/trunk/www/inconveniences.html
> > svn: REPORT request failed on
> > '/repos/svn/!svn/bc/18880/trunk/www/inconveniences.html'
> > svn: '/repos/svn/!svn/bc/18880/trunk/www/inconveniences.html' path not found
> You're forgetting how to use peg-revisions. When you run
> svn diff -rX:Y URL
> ..it's the same as if you had typed
> svn diff -rX:Y URL@HEAD
> And, if URL@HEAD doesn't exist, end of story. You get the error you're seeing.

How is that even close to what I intended?

> What you mean to type is
> svn diff URL@X URL@Y
> That syntax is a command to diff two "exact" trees. The other command
> is doing rename tracing, which you probably don't want. (Though I
> suppose you could do svn diff -rX:Y URL@Y, and allow the path to be
> traced backwards from Y to X.)

Why is 'diff -rX:Y URL' not equivalent to 'diff URL@X URL@Y'?

I think I now understand what Julian's post about the diff/peg-rev
mess is about. This is completely counter-intuitive. -- justin

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 14 03:30:41 2006

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