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

Re: Cannot diff after file rename

From: Martin Furter <mf_at_rola.ch>
Date: 2006-02-07 18:34:41 CET

Hello

All 3 diffs work for me with debian's subversion 1.2.3dfsg1-3, the output
was:

Index: TestB-New.txt
===================================================================
--- TestB-New.txt (.../TestB-New.txt) (revision 3)
+++ TestB-New.txt (.../TestB.txt) (revision 2)
@@ -1,2 +1 @@
  TestB
-Renamed

Additionally the following command works too:

svn diff TestB-New.txt@3 -r PREV

Martin

On Tue, 7 Feb 2006, Simon Large wrote:

> Peter N. Lundblad wrote:
>> On Mon, 6 Feb 2006, Simon Large wrote:
>>
>>> Hi folks,
>>>
>>> Having renamed and modified a file in the same commit, I am unable to
>>> diff the current revision against the previous one using its new name.
>>> Am I missing something obvious, or is this a bug? Using svn 1.3.0.
>>>
>> svn diff --old=OLDURL@OLDREV --new=newfile
>>
>> So, you need to specify both the old and new name and another problem is
>> that you can't specify a non-existing WC path, so you need to us an URL.
>>
>> http://subversion.tigris.org/issues/show_bug.cgi?id=1902
>> seems relevant to the last part.
>
> I thought the whole point of a pegrev was that it allowed history tracing
> without me having to do the legwork of finding out what the URL was in a
> previous revision.
>
> Another data point for you:
> I have made a small change to the recipe on line 15. If I modify TestB.txt
> instead of TestA.txt, the following diff works across the name change. This
> makes me think there is more to this than first appears.
>
> Simon
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 7 18:35:15 2006

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