Skip to content

Instantly share code, notes, and snippets.

View tobster-de's full-sized avatar

Tobias Kolb tobster-de

  • Floh-Seligenthal
View GitHub Profile
@breyten
breyten / hg-close-inactive-branches.sh
Last active February 22, 2019 11:17
Automatically close inactive mercurial branches (use with care!)
for i in `hg branches |grep -v 'default' |grep -v 'production' |grep inactive |awk '{print $1}'`; do hg update $i && hg commit -m "close branch" --close-branch; done