[PATCH] Move function 'patchtext' from mdiff.py to manifest.py because it is only used in manifest

Matt Mackall mpm at selenic.com
Thu Oct 13 10:58:02 CDT 2011


On Wed, 2011-10-12 at 08:30 +0200, Andrey Somov wrote:
> # HG changeset patch
> # User Andrey Somov <py4fun at gmail.com>
> # Date 1318457467 -7200
> # Node ID f6a12299c73aadc9142ed10cff78caa6f054fd2b
> # Parent  dac2edce4e4a7eb63ff2c1bb6ab2289c0bcec9e5
> Move function 'patchtext' from mdiff.py to manifest.py because it is only used in manifest

While this is (currently) true, it's also true that this function knows
way too much about the internals of manifest storage, and thus must stay
exactly where it is. Moving it creates a "layering violation".

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list