[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 22 Dec 2010 20:16:18 +0200

Chris Tashjian wrote on Wed, Dec 22, 2010 at 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.

Plus, since creating a tag is typically a URL-to-URL (or WC-to-URL) copy
operation, the usual warning against modifying transactions from the
pre-commit hook does not apply...

IOW, the pre-commit hook could add that (versioned) property.
Received on 2010-12-22 19:19:25 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.