A script for merging closed branch heads

Dan Villiom Podlaski Christiansen danchr at gmail.com
Wed Dec 15 15:04:17 CST 2010


Hi,

The ~500 topological heads in the PyPy repository caused problems for  
one of the developers. Apparently, a proxy barfed on the very long  
requests used during pushing. To solve this, I came up with the  
following small script to merge the heads into a closed branch. The  
script just might be useful to someone else, so I've attached it below.

(The script uses a slightly odd order of parents of [null, head] for  
the first "merge". This was a quick-and-dirty hack to ensure that all  
the merge changesets were completely empty.)

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: merge-closed.py
Type: text/x-python-script
Size: 1041 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101215/64b6cf34/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101215/64b6cf34/attachment-0001.bin>


More information about the Mercurial-devel mailing list