[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: Andy Levy <andy.levy_at_gmail.com>
Date: 2006-01-29 21:49:07 CET

On 1/29/06, Giovanni Bajo <rasky@develer.com> wrote:
> I added foo.c as part of the commit r124. When I run this command line:
>
> svn diff -r123:124
>
> I get the diff of the whole commit, including the diff of the new file that was
> added (just like a diff against /dev/null). But if I try to single out the new
> file:
>
> svn diff -r123:124 foo.c
>
> I get this error:
>
> svn: Unable to find repository location for 'foo.c' in revision 123
>
> 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? The message is, as you
know, 100% correct - foo.c didn't exist in rev. 123, therefore it's
impossible to analyze what changed as compared to a newer revision.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 29 21:49:53 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.