Removing Inactive Branches

Josh Malinski JMalinski at anasazisoftware.com
Wed Aug 24 21:42:31 UTC 2011


Greetings,

 

I have inherited a rather large environment where the developers created
named branches but never actually closed these branches (some 400
inactive branches). They would merge the work to the default branch but
leave them open. I have since explained the errors of their ways since
these branches once merged were no longer to be used. However, now I
would like to clean up so they aren't just sitting around, what is the
best way to clean up? I created a batch file that will process them but
I wasn't the biggest fan of it. Below is a snippet

 

hg up -C branchname

hg ci --close-branch -m "Closed Inactive Branch"

 

Any help or advice would be great! Thanks!

 

--Josh

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110824/5cfd6b9e/attachment-0002.html>


More information about the Mercurial mailing list