charles-peter-nystrom
6/30/2016 - 1:48 PM

hg-close-inactive-branches.sh

for i in `hg branches |grep -v 'default' |grep -v 'develop' |grep inactive |awk 'NF>1{print $(NF-1)}'`; do hg update -r "$i" && hg commit -m "Closed branch" --close-branch; done