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

Re: How to get the parent branch...

From: Chris Tashjian <ctash_at_thepond.com>
Date: Wed, 22 Dec 2010 11:34:03 -0500

> For some client-side Tortoise hooks (which are for the purpose of
> preventing people shoot themselves in the head in all the myriad ways
> Subversion allows), I need to get the ancestor-branch, ie where the current
> branch/tag was copied from.

When I create a new branch I add an svn:property, such as "base-tag", to the
new branch with a reference to the old branch. Then all you need to do on a
given branch is "svn propget base-tag <BRANCH_URL>"

It's a manual process to add it, but I find it saves a lot of time (and
question answering) later.
Received on 2010-12-22 17:35:06 CET

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.