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

Re: Detecting renames on one branch with changes on another

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-03 21:23:21 CEST

On May 3, 2007, at 12:14, Justin Johnson wrote:

> I want to tell Subversion to show me the log for the path
> /trunk/foo.c@2 but show me this log in the latest revision using
> whatever path it has in that revision, so that I get the latest
> revision and all ancestors.
>
> Since I happen to already know that revision 5 is the latest revision
> for foo.c on trunk, I can run:
>
> C:\work\wc2>svn log -r 5 -v file:///C:/work/testrepo/trunk/foo.c_at_2
> ----------------------------------------------------------------------
> --
> r5 | jjohn53 | 2007-05-03 08:52:50 -0500 (Thu, 03 May 2007) | 1 line
> Changed paths:
> M /trunk/foo.c
>
> Add Spanish line to foo.c
> ----------------------------------------------------------------------
> --
>
> But this doesn't give me its history all the way back to its
> beginning. And in the real world I don't know that 5 happens to be
> the latest revision touching it.
>
> How do I accomplish this?

"svn log -r 5" means "show me the log for revision 5". If you want
the history to revision 5 from the beginning of time, you could try
"svn log -r 0:5".

If you don't know that 5 is the last changed revision of foo.c... but
you do want the entire log of foo.c, from its inception to its last
changed revision.... why not just get the entire log and omit the
revision argument?

svn log -v file:///C:/work/testrepo/trunk/foo.c_at_2

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 3 21:24:36 2007

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.