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

diff'ing a file against a repository revision in which it did not exist

From: Michael Fischer <michael_at_dynamine.net>
Date: Thu, 29 Apr 2010 14:01:57 -0700

Hi everyone,

I have a file, "foo", which is committed to my SVN repository. Here
is the history:

------------------------------------------------------------------------
r8429 | me | 2010-04-19 15:03:34 -0700 (Mon, 19 Apr 2010) | 2 lines

Minor updates

------------------------------------------------------------------------
r8398 | me | 2010-04-08 12:57:27 -0700 (Thu, 08 Apr 2010) | 2 lines

Updated SVN keywords.

------------------------------------------------------------------------
r8397 | me | 2010-04-07 17:47:55 -0700 (Wed, 07 Apr 2010) | 2 lines

Initial commit

------------------------------------------------------------------------

We're using Review Board (http://www.reviewboard.org/) for code
reviews, which expects input in diff(1) format.

I'm ready for my reviewer to review my work, but I can't seem to get
SVN to produce a useful diff under the present circumstances.
Effectively, I want "svn diff -r8396 foo" to work as if the repository
had a zero-length version of "foo" committed at the revision
immediately prior to the initial commit, or as if I ran "svn diff foo"
when the file had been added but not yet committed. Instead, svn
says:

svn: Unable to find repository location for 'yms_agent' in revision 8396

Obviously this is true, but is it possible to obtain a diff instead?

Please CC: any replies to me directly, as I am not a member of the mailing list.

Thanks,

--Michael
Received on 2010-04-29 23:04:14 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.