[PATCH 0 of 4] A Branch Closing patch series

John Mulligan phlogistonjohn at asynchrono.us
Tue Dec 23 13:31:36 CST 2008


Named branch closing, attempt #4

The first patch in the series is a self-contained attempt at storing all
heads of named branches in the branch cache. You should be able to apply
this patch and everything will behave as usual, only all heads (not just
the tipmost) will be stored in the cache. This should all be transparent
to the user.

The remaining three patches implement the branch closing style indicated by
mpm on the devel list:
  http://selenic.com/pipermail/mercurial-devel/2008-March/005144.html

A new --close-branch option is provided for commit. If this flag is used the
change set will be marked with an extra attribute indicating that the
branch has been closed.

If a user adds a branch closing commit to a branch that has multiple heads
the next (tipmost) open head will show up in 'hg branches'. Once all heads
have been closed the branch will be treated the same as an inactive branch
in "hg branches". An --active option has been added to "hg heads" in order
to skip viewing the heads that have the been marked closed.

Branches can be re-opened by adding a normal change set on top of
the closing cset.

Feedback is very welcome.

--John M.



More information about the Mercurial-devel mailing list