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

Re: svn diff on renamed files

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-06-28 20:12:03 CEST

kfogel@collab.net writes:

> Chris Hecker <checker@d6.com> writes:
>> Hmm, when I wrote my original mail I figured there was actually some
>> way to do the svn diff, it was just inconvenient. Now it's seems that
>> you just can't do the diff at all, even with full paths to the
>> repository:
>>
>> svn diff --old url/old.txt@4 --new url/new.txt@HEAD
>>
>> doesn't work (or any of the other combos I tried...it keeps looking
>> for new.txt@4 for some reason). Am I missing something? Bug 1093 is
>> marked as post-1.0, which seems like a bad idea since this really
>> limits the utility of being able to rename files in the first place,
>> which is a big selling point of svn relative to cvs. It seems like
>> the --old --new args are just broken to diff?
>>
>> Or am I missing the magic syntax (in addition to a clue)?
>
> I think your syntax is right, judging from 'svn help diff' -- Philip
> Martin will correct me if wrong. I think it's a known bug that not
> everything promised by the syntax is actually delivered yet.

Hmm, this works as I expect

svn diff -r4149:HEAD \
 --old http://svn.collab.net/repos/svn/trunk/tools/dev/ \
 --new http://svn.collab.net/repos/svn/trunk/tools/client-side/ \
 bash_completion

as does this

svn diff -r4149:HEAD \
 --old http://svn.collab.net/repos/svn/trunk/tools/dev/bash_completion \
 --new http://svn.collab.net/repos/svn/trunk/tools/client-side/bash_completion

and this

svn diff \
 --old \
 http://svn.collab.net/repos/svn/trunk/tools/dev/bash_completion@4149 \
 --new \
 http://svn.collab.net/repos/svn/trunk/tools/client-side/bash_completion@HEAD

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 28 20:12:59 2003

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.