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

Re: Full log history or branch derivation tree?

From: Dan Stromberg <dstromberglists_at_gmail.com>
Date: 2007-11-28 23:41:46 CET

On Nov 28, 2007 11:47 AM, Andy Levy <andy.levy@gmail.com> wrote:

> On Nov 28, 2007 2:34 PM, Dan Stromberg <dstromberglists@gmail.com> wrote:
> > 1) Is there a way of getting "svn log" (or similar) to output not just
> > log history for the current branch/tag, but to also report history of
> > the files comprising that branch/tag through their full history,
> > including when they were part of other branches and/or tags?
>
> You can go back in time, but not forward. That is, if you pull the log
> for a branch, SVN will follow the history back to where the branch was
> created, and then the history of the source of the branch.
>
> I.E. if you make branch B1 from trunk at rev 100 and make branch B2
> from trunk at rev 150, svn log B1 will show you the history of
> everything that's happened in B1, and then everything in trunk up
> through rev 100. Changes to trunk after rev 100 will not be shown, nor
> changes to B2. svn log B2 will show you the history of B2 since its
> creation, then trunk's history up through rev 150, but nothing in B1.

This sounds like just what I need, but I have a lingering question about
this.

If I look at this log, I get 37 entries:
svn log --stop-on-copy http://<withheld>/<withheld>

...but if I look at that same url without --stop-on-copy, I get 186
entries. So clearly it's going back past some copy or other - the
--stop-on-copy is doing something.

However, our trunk, from which this was cut, is thousands of revisions, not
just hundreds. If the svn log without --stop-on-copy is only showing 186
entries, it pretty much has to be leaving a bunch of stuff out of the
revision history that should come from trunk.

Does "svn log" look back at one prior branch and stop, or does it
iteratively go from branch to branch to the root of the revision history?
Received on Wed Nov 28 23:42:17 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.