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

Re: retrieve branch creation revision id

From: Pierrick LE GALL <plegall_at_talend.com>
Date: 2006-10-05 15:25:27 CEST

"Felix Gilcher" <gilcher@exozet.com> writes:

> Pierrick LE GALL <mailto:plegall@talend.com> schrieb:
>
>> Hi there,
>>
>> Given that a branch is simply a directory in my Subversion repository,
>> how do I retrieve the revision id responsible of a directory creation?
>>
>> I suppose by analysing the "svn log" output, but can anybody tell me
>> what to look for?
>
> Take the last revision from "svn log --stop-on-copy <branch>". It will
> tell you on which revision the copy was created and where it was
> copied from.

$ svn log --stop-on-copy http://svn.gna.org/svn/phpwebgallery/branches/branch-1_6 \
    | perl -ne 'if (/^r(\d+) \|/) {print $1, "\n"}' \
    | tail -1

It works great, thank you Felix :-)

-- 
Pierrick LE GALL
R&D engineer at Talend, Open data solution
http://www.talend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 5 15:26:14 2006

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.