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

Re: History of erased file

From: Peter Davis <peter_at_pdavis.cx>
Date: 2002-12-10 20:28:12 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 10 December 2002 05:34, Roman Rytov wrote:
> That works fine but only if I know that A.txt became B.txt

Just run "svn log --strict --verbose b.txt". The last log message shown will
be for the revision in which b.txt was created, and on the line showing
"A b.txt" it will show the name of the file from which it was copied.

It's very simple, and you don't need to look at any log messages except the
very last one shown. You don't even need to read the log messages; only the
- --verbose output. Here, try it for yourself (I used q and r instead of a.txt
and b.txt):

$ echo blah > q
$ svn add q
A q
$ svn ci -m "Create Q"
Adding q
Transmitting file data .
Committed revision 3.
$ echo bloo > q
$ svn ci -m "Modify Q"
Sending q
Transmitting file data .
Committed revision 4.
$ svn mv q r
A r
D q
$ svn ci -m "Rename Q -> R"
Deleting q
Adding r

Committed revision 5.
$ echo blah > r
$ svn ci -m "Modify R"
Sending r
Transmitting file data .
Committed revision 6.
$ svn log --strict --verbose r
- ------------------------------------------------------------------------
rev 6: pediddle | 2002-12-10 11:23:23 -0800 (Tue, 10 Dec 2002) | 1 line
Changed paths:
   M /r

Modify R
- ------------------------------------------------------------------------
rev 5: pediddle | 2002-12-10 11:23:07 -0800 (Tue, 10 Dec 2002) | 1 line
Changed paths:
   D /q
   A /r (from /q:4) ###### Right here, you see that /r was renamed from /q

Rename Q -> R
- ------------------------------------------------------------------------

- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE99kBMhDAgUT1yirARAjliAJ9bHzYx3hctAQmzlQCVr+19+N0zYQCffpCt
McJ+QqhUfTkGIfiq1Rjdujo=
=TNOE
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 10 20:28:56 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.