[PATCH 0 of 9] improvements for named branches
Florent Guillaume
fg at nuxeo.com
Mon Mar 3 17:01:59 CST 2008
Jesse Glick wrote:
> Matt Mackall wrote:
>> How do you unclose a branch?
>
> Possible alternative: consider a head to be closed iff it contains a
> file '.hgclosed' in the root dir (contents irrelevant, could be empty or
> contain an explanatory message). Simple to close or unclose a branch
> using hg add/rem, no extra metadata field needed, change takes effect
> with the commit. A branch would be closed if all its heads were closed.
Hm that would be way more costly, as Peter noted. If the code cannot
decide what to show simply from the revlog then it gets too complex.
I like Matt's (and Adrian's) counter proposals a lot more, it feels
natural to me to be able to close heads (mark them inactive), and not
display a branch anymore if all its heads are closed. Tracking the
multiple heads of a branch is still vital though.
Florent
--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
More information about the Mercurial-devel
mailing list