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

Re: Getting diff of a new file

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-01-30 01:11:31 CET

Andy Levy <andy.levy@gmail.com> wrote:

>>>> Is there a way to get this diff? While I understand that the error
>>>> message is strictly correct, I believe that it's unfortunate that
>>>> svn diff -r[N-1]:[N] work for modified files but not for new files.
>>>> Should I file a ticket for this?
>>>
>>> I don't see how this could be a bug. It's not possible to do a diff
>>> between a version that doesn't exist and anything else. What do you
>>> expect the output to be? Every line added?
>>
>> Yes, exactly the same output that I get when I run "svn diff
>> -r123:124". The bug is because of inconsistency: why the diff is
>> produced if I don't name the file, while it errors out if I provide
>> the file name?
>
> Because when you diff the full revisions, there are other differences
> as well. When you diff the one filename, you're only looking for that
> filename in each revision - and it doesn't exist in 123.

I had assumed it had to do like this, but I consider this an inconsistency in
the net result.

Giovanni Bajo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 30 01:12:35 2006

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

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