SVN log for specific path ignoring history (similar to git log -- file) -
does subversion provide method view log of path, regardless of whether has file/folder @ path in current revision? subversion uses 2 different specifiers revisions @xxxx
(peg revision) , -rxxxx
(operative revision) specify location @ revision , state of item @ revision (might have been moved in meanwhile).
basically, i'm looking svn equivalent of git log -- path/to/file
command. print out commits touching path, ignoring (i.e. not following) moves.
doing svn log -r$rev:$((rev-1) path/to/file@$rev
in loop seems overkill (and i'm not sure work intended)
ok, can't see problem here (for svn 1.8.*)
sample full repo-log (unrelated changed path/in/question added)
>svn log -v -q file:///z:/repo ------------------------------------------------------------------------ r6 | badger | 2015-07-08 15:03:09 +0500 (Ср, 08 июл 2015) changed paths: /trunk/miracle ------------------------------------------------------------------------ r5 | badger | 2015-07-08 15:02:06 +0500 (Ср, 08 июл 2015) changed paths: m /trunk/a.txt /trunk/b.txt ------------------------------------------------------------------------ r4 | badger | 2015-07-08 15:01:09 +0500 (Ср, 08 июл 2015) changed paths: /trunk/a.txt ------------------------------------------------------------------------ r3 | badger | 2015-07-08 15:00:13 +0500 (Ср, 08 июл 2015) changed paths: d /trunk/miracle ------------------------------------------------------------------------ r2 | badger | 2015-07-08 14:59:17 +0500 (Ср, 08 июл 2015) changed paths: /trunk/miracle ------------------------------------------------------------------------ r1 | badger | 2015-07-08 14:57:21 +0500 (Ср, 08 июл 2015) changed paths: /branches /tags /trunk ------------------------------------------------------------------------
if want see history of known object in known location (miracle dir in /trunk) i'll use log parent of object , filter interesting revisions --search
name of object
>svn log -q -v file:///z:/repo/trunk --search miracle ------------------------------------------------------------------------ r6 | badger | 2015-07-08 15:03:09 +0500 (Ср, 08 июл 2015) changed paths: /trunk/miracle ------------------------------------------------------------------------ r3 | badger | 2015-07-08 15:00:13 +0500 (Ср, 08 июл 2015) changed paths: d /trunk/miracle ------------------------------------------------------------------------ r2 | badger | 2015-07-08 14:59:17 +0500 (Ср, 08 июл 2015) changed paths: /trunk/miracle ------------------------------------------------------------------------
Comments
Post a Comment