[PATCH 0 of 3] Changes to make branches more useful

Eric Hopper hopper at omnifarious.org
Tue Jun 19 15:40:31 UTC 2007


These are some long hashed over changes for making branches more useful.
First by adding the ability for 'hg heads' to give branch heads as well
as global repository heads.  Secondly by making 'hg branches' flag
'inactive' branches (defined as branches who's heads are not also
repository heads) and have an option to completely elide them.

Additionally this adds code to have a Python version independent set
type since the branch heads code is best expressed with sets and there
are a few other places in the Python code where sets would allow an
algorithm to be expressed more clearly.

Testing has shown that Python2.3 sets a very slow, but that in 2.4 and
higher they are generally comparable to dictionaries and in 2.5 they are
better than dictionaries in some cases.  The idea is to eventually drop
the set type shipped with Python2.3 in favor of a hand rolled set type
derived from dict that will hopefully not be much slower than a dict in
most cases.

These changes can be pulled either from the attached bundle or from
http://hg.omnifarious.org/~hopper/merc-tocrew

They are based on the http://www.selenic.com/hg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: branch-fix.hg
Type: application/octet-stream
Size: 5209 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20070619/254aab50/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20070619/254aab50/attachment.asc>


More information about the Mercurial-devel mailing list