[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: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: 2006-03-14 03:17:19 CET

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.

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.)

---------------------------------------------------------------------
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:17:41 2006

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

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