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

How to find out the rev number where a file was deleted?

From: Paul Maier <svn-user_at_web.de>
Date: Sat, 27 Nov 2010 01:21:04 +0100

Hello,

I would appreciate advice for how to find out the rev number where a file was
deleted or moved.

I expected this command:
svn log -v -r 1:head "file:///[...]/xx/a_at_1"

to show all revs including the deleting rev (as last shown rev),
but that doesn't work. The command fails.

Does anybody know, what command I could enter?

Thanks!
  Paul

Here my simplified setup:
echo a > a; svn add a; svn ci -m ""
[lots of other revisions]
svn mv a b; svn ci -m "" ## <-- how to find out the rev number of that checkin??
[lots of other revisions]
svn log -v "file:///[...]/xx/a_at_1" # just a test that the syntax works

Console output:
svnadmin create xx
svn co "file:///[...]/xx" yy
Ausgecheckt, Revision 0.
cd yy
echo a > a
svn add a
A a
svn ci -m ""
Hinzufügen a
Übertrage Daten .
Revision 1 übertragen.
echo x > somethingelse
svn add somethingelse
A somethingelse
svn ci -m "somethingelse" --force-log
Hinzufügen somethingelse
Übertrage Daten .
Revision 2 übertragen.
svn mv a b
A b
D a
svn ci -m ""
Lösche a
Hinzufügen b

Revision 3 übertragen.
echo x >> somethingelse
svn ci -m "somethingelse" --force-log
Sende somethingelse
Übertrage Daten .
Revision 4 übertragen.
svn up
Revision 4.
svn log -v "file:///[...]/xx/a_at_1"
------------------------------------------------------------------------
r1 | user | 2010-11-27 00:38:43 +0100 (Sa, 27. Nov 2010) | 1 Zeile
Geänderte Pfade:
   A /a

------------------------------------------------------------------------
svn log -v -r 1:head "file:///[...]/xx/a_at_1"
svn: Datei nicht gefunden: Revision 4, Pfad »/a«
Received on 2010-11-27 01:21:56 CET

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.