Closing a Branch


hg commit --close-branch


  • It no longer shows up in the output from hg branches
  • Tortoise draws the relevant commit (108a0b1e61d4) with a different graphic (a rectangle) to indicate the “closed” state (see below)
  • This is not irrevocable; one can still commit to the branch. But the next commit, should one ever occur, will warn the person: “reopening closed branch head NNNN”, where NNNN is the local revno. (At least, the command-line “hg” will warn them; not sure about Tortoise or Eclipse…)

It's only fair to share...
Share on Facebook
Tweet about this on Twitter
Share on LinkedIn

Leave a Reply