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

Re: Accessing history after copy?

From: Robert Guthrie <throw.away_at_pobox.com>
Date: 2004-02-24 18:56:37 CET

I'm having a similar problem, but following your advice isn't helping.
Here's a fragment from my log, showing that I moved /trunk/rguthrie to
/trunk/MySync. In the previous revision, I checked in a short story I'm
writing, and I want to compare that against my current one (see after
the log):

rguthr@rguthr4:~/MySync$ svn log -v | grep -C5 r245
    D /trunk/rguthrie

Moved "rguthrie" directory to "MySync"

------------------------------------------------------------------------
r245 | rguthrie | 2004-02-16 17:46:32 -0600 (Mon, 16 Feb 2004) | 2 lines
Changed paths:
    M /trunk/rguthrie/Writing/A_Veil_Torn.lyx

My diff command outputs the entire file:
rguthr@rguthr4:~/MySync/Writing$ svn diff -r245 A_Veil_Torn.lyx | head
Index: A_Veil_Torn.lyx
===================================================================
--- A_Veil_Torn.lyx (revision 0)
+++ A_Veil_Torn.lyx (revision 266)
@@ -0,0 +1,376 @@
+#LyX 1.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 221
+\textclass book
+\language english
+\inputencoding auto

Note that it's comparing revision 0 to revision 266, but not to revision
245 (when it was actually created) and HEAD. If I try to force it:
rguthr@rguthr4:~/MySync/Writing$ svn diff -r245:HEAD A_Veil_Torn.lyx
svn:
'svn+ssh://me@my.server/home/subversion/personal/trunk/MySync/Writing/A_Veil_Torn.lyx'
was not found in the repository at revision 245

So, what gives? I don't think my head revision has changed, except in
location, but shouldn't that just result in no output?

Note that I've tried using the full URL for revision 245, and that
resulted in the same error.

Ben Collins-Sussman wrote:
>
> No, you're not doing anything wrong. This is one of the big annoyances
> of subversion 1.0, a feature we haven't yet implemented. The repository
> tracks copy/move history, but of all the client subcommands, only 'svn
> log' can follow that history. Really, 'svn diff', 'svn merge', 'svn
> cat/ls', and a whole bunch of other commands ought to follow history as
> well.
>
> The workaround for svn 1.0 is to use 'svn log' to discover the item's
> history, then provide the proper (revision, URL) coordinates to the
> subcommand you really want to run.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 24 18:56:46 2004

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.