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

Re: Quickly showing branch ancestrally?

From: Andreas Stieger <Andreas.Stieger_at_gmx.de>
Date: Tue, 15 Sep 2015 11:54:25 +0200

Hi, 

Paul Hammant wrote:
> If I expand on what you did, I can get the branch mapping like so:
>   svn log --verbose --stop-on-copy branchtwo/test.txt | grep " (from "
> Gives:
>  
>   A /branchtwo (from /branchone:1)

You'll want...
  -r1:HEAD -l1
to limit to one log message and...

> Close enough, but I fear it's not robust.

add --xml for robustness.

svn log ^/subversion/branches/1.9.x -r1:HEAD --stop-on-copy -l1 -v --xml

<?xml version="1.0" encoding="UTF-8"?>
<log>
<logentry
   revision="1660545">
<author>brane</author>
<date>2015-02-18T00:11:09.690992Z</date>
<paths>
<path
   prop-mods="true"
   text-mods="false"
   kind="dir"
   copyfrom-path="/subversion/trunk"
   copyfrom-rev="1660544"
   action="A">/subversion/branches/1.9.x</path>
</paths>
<msg>Create the 1.9.x release branch.</msg>
</logentry>
</log>

Andreas
Received on 2015-09-15 11:54:29 CEST

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.