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

RE: Re: merge all of branch into trunk?

From: DW Dennis Wheeler <dwheeler_at_ag.com>
Date: Mon, 8 Sep 2008 09:33:10 -0700

> -----Original Message-----
> From: Benjamin Smith-Mannschott [mailto:bsmith.occs_at_gmail.com]
> Sent: Monday, September 08, 2008 8:15 AM
> To: Subversion Users
> Subject: Re: merge all of branch into trunk?
>
>
> On Sep 8, 2008, at 11:33, Robert P. J. Day wrote:
>
> > i'm sure there's a trivial answer to this, but what is the merge
> > incantation to merge all of a branch's revisions since i
> branched into
> > the trunk? it is, of course, easy enough to check the log on the
> > branch, get the copy revision, then use that, but is there
> a shorter
> > form that allows me to be unspeakably lazy? thanks.
> >
> > rday
>
> svn merge --reintegrate? if branch is up-to-date with trunk
> and you are using svn 1.5
>

as long as you're setting the condition to keep the branch up-to-date
with the trunk... (and you know that last merged revision number: xxxxx)

...then this otherwise step becomes a little easier...

> otherwise ... muhahaha:
>
> svn merge -$(svn log -q --stop-on-copy $BRANCH_URL \
> | tail -n 2 | head -n 1 | egrep -e "^r[1-9][0-9]+" -o):HEAD \
> $BRANCH_URL \
> $PATH_TO_TRUNK_WORKING_COPY
>

(you left out the 'r' in 'svn merge -r$(svn ...)...')

svn merge $PATH_TO_TRUNK_WORKING_COPY_at_xxxxx $BRANCH_URL_at_xxxxx

> Isn't that horrible? I'll be watching this thread to see if
> someone has an actually useful suggestion.
>
> // Ben
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-08 18:33:37 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.