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

Re: How do I find out the ancestor of svn cp?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-06-28 18:00:56 CEST

"Mats Nilsson" <mats.nilsson@xware.se> writes:

> The question is simple: how will I be able to use "svn log" to find out the
> source (path/revision) of a "svn cp" or a "svn mv"? As of 0.13.1+ (version
> 2346), "svn log --verbose" only shows the target.

Huh? The new repository filesystem now traces back through copy
history. For example, libsvn_wc/update_editor.c was renamed from
'get_editor.c' in revision 1316:

$ svn log -v update_editor.c
...
rev 1316: sussman | Tue, 19 Feb 2002 14:34:21 -0600 | 1 line
Changed paths:
   D trunk/subversion/libsvn_wc/get_editor.c
   A trunk/subversion/libsvn_wc/update_editor.c

* update_editor.c: rename. No longer 'get_editor.c'
...

Of course, I see your point. That log output would be more useful if
we could see some information that says "update_editor.c was copied
from (1315, get_editor.c)". I believe 'svnlook' is doing that right
now, because it's asking dir_delta() for the copy history:

$ svnlook repos rev 1316 diff

Copied: update_editor.c (from rev 1315, trunk/subversion/libsvn_wc/get_editor.c)

Really, I suspect 'svn log -v' should be doing exactly the same thing,
no? Maybe we should file an issue on this?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 28 18:05:22 2002

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

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