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

RE: Copy changes from one branch to another

From: Andrew Reedick <Andrew.Reedick_at_cbeyond.net>
Date: Mon, 30 Sep 2013 09:14:42 -0400

> -----Original Message-----
> From: Sven Richter [mailto:sveri80_at_googlemail.com]
> Sent: Monday, September 30, 2013 8:29 AM
> To: users_at_subversion.apache.org
> Subject: Copy changes from one branch to another
>
> Hi,
>
> I have the following setup
>
> trunk branch A (created from trunk)
> | |
> | |
> | |
>
> Now, what I want to do is only commit my changes to the trunk and make sure that every committed change is replicated into branch A. This should be an automatic commit, triggered by the commit to trunk, while being aware of the fact that no other changes should be done in branch A but the autocommit from trunk.
> Another "would-like" requirement is that the commit metadata like author and commit time/date are kept, but this is not a must have.
>
> Is that possible with svn, maybe with autocommit hooks? If not, what other way would you see to achieve that?

Post commit script that deletes branch A and then recreates branch A from trunk, i.e. make branch A effectively a tag. Since the delete and copy are server side commands, no workspace is needed to make it work. However this will fail if (when) you need to make custom changes on branch A.
Received on 2013-09-30 15:16:28 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.