[PATCH] manifest: add matches() method

Sean Farley sean.michael.farley at gmail.com
Fri Nov 14 06:03:56 UTC 2014


Martin von Zweigbergk writes:

> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1414039110 25200
> #      Wed Oct 22 21:38:30 2014 -0700
> # Node ID 36e990ef2fc4c96fac15052f0fbb05d1a96bd616
> # Parent  394c79df66c39923477528b2ea2092b6944b965b
> manifest: add matches() method
>
> Move the code in context._manifestmatches() into a new
> manifest.matches(). It's a natural place for the code to live and it
> allows other callers to easily use it. It should also make it easier
> to optimize the new method in alternative implementations of the
> manifest (same reasoning as with manifest.diff()).

That makes sense. +1



More information about the Mercurial-devel mailing list