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

Re: "svn diff" works for added files in working copy, but not for previous revision

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 29 Jul 2010 12:42:44 +0200

On Wed, Jul 28, 2010 at 09:48:33PM +0000, Bob wrote:
> Hi,
> When I do "svn diff file1" on a file that I just added to my working copy since
> the last commit, it prints a diff that shows the entire file being added.
> However, if I had a file that was added in a previous revision (say 42), and I
> try to do "svn diff -c 42 file2", it doesn't work. It gives the error:
> svn: Unable to find repository location for 'file2' in revision 41
>
> Of course, it is true that the file did not exist in revision 41. But all I want
> is to see the same diff information as I get from a working copy, i.e. a diff
> that shows the added file in revision 42. Is there a way I can do that?

Known bug: http://subversion.tigris.org/issues/show_bug.cgi?id=2873

Does not look like anyone is working on it at the moment.
But it needs to be fixed.

Stefan
Received on 2010-07-29 12:43:24 CEST

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.