[PATCH 8 of 9 V2] repo: move visibleheads and visiblebranchmap logic on repo

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Jul 15 20:01:16 CDT 2012


On 15 juil. 2012, at 21:12, Matt Mackall wrote:

> On Fri, 2012-07-06 at 19:54 +0200, pierre-yves.david at logilab.fr wrote:
>> # HG changeset patch
>> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
>> # Date 1341532735 -7200
>> # Node ID a4f7ce4f78987bad5054ca91acd2b614fb982104
>> # Parent  6c0a3b9bcb4c319714a0edd07ee99dea4487f3c4
>> repo: move visibleheads and visiblebranchmap logic on repo.
> 
> I don't like this, sorry. The localrepo class already has way too many
> methods and we're trying to limit that.

Ok, I'm moving them in "discovery" then. because it's the best "generic" place I found about visibility//discoverability of changeset.

Alternative is to leave them in mercurial/phases.py and add obsolete logic in phases.py.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list