Pulling into a branch

Arne Babenhauserheide arne_bab at web.de
Tue Nov 11 12:28:40 CST 2008


Am Dienstag 11 November 2008 17:11:41 schrieb John D. Mitchell:
> Make a local clone of your "master" repo and do the pulls, testing,
> etc. of the external submissions against that.  When you're happy with
> the results, push/pull the results into your "master" repo.

I think that might not work with their workflow in which each one manages his 
own set of patches in a seperate branch. 

You can add the patches to a temporary clone and then export them as patches 
and import them into a branch.  

Something like the following (tmp_repo is your temporaty clone for pulling, 
branched_repo is your repo in which you work in your own branch): 

for each new REV: 
	cd branched_repo
	cd ../temp_repo ; hg export REV1 > patch; cd ../branched_repo
	hg import ../temp_repo/patch

It should be quite easy to automate this loop (for example "hg id -n" give 
sthe current workdir revision). 

Also I'm sure there's a more elegant way, but this one was the first which 
came to my mind :) 

Best wishes, 
Arne
-- 
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the 
history of free software.
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.

-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt



More information about the Mercurial mailing list