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

Re: finding branch base version numbers...

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-04-15 22:16:11 CEST

On Thu, 2004-04-15 at 15:12, Perry E. Metzger wrote:
> Is there any better way to know what the base version number of a
> branch is than including "create branch foo" in the commit message and
> noting that the commit message is associated with a particular
> revision in svn log? One of my users is noting that figuring out the
> base version for a branch is a bit cumbersome when you need to get it
> for diff&merge purposes...

'svn log -v branchURL' shows changed paths. You don't need to read
human log messages at all: just look for the 'copy' in the list of
changed paths.

Actually, the easiest solution is to run

   $ svn log -v --stop-on-copy source-branch-URL
   [...]

This command will display every change ever made to the branch, but
--stop-on-copy option will cause the output to stop as soon as detects a
copy operation in the branch's history. By definition, then, the very
last log entry printed will show the copy being made. It will look
something like:

r9189 | joe | 2004-03-22 10:10:47 -0600 (Mon, 22 Mar 2004) | 1 line
Changed paths:
   A /branches/mybranch (from /trunk:9188)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 15 22:18:27 2004

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.