# HG changeset patch # User Drew Gottlieb # Date 1426285501 25200 # Node ID 149cc171e4a0621183cf72c1fa16b1ecf64ff48d # Parent 4c7c6beade1adec5925eb59b6a8dbcb8ae149394 manifest: add manifestdict.hasdir() method Allows for alternative implementations of manifestdict to decide if a directory exists in whatever way is most optimal. diff -r 4c7c6beade1a -r 149cc171e4a0 mercurial/manifest.py --- a/mercurial/manifest.py Fri Mar 13 15:23:02 2015 -0700 +++ b/mercurial/manifest.py Fri Mar 13 15:25:01 2015 -0700 @@ -155,6 +155,9 @@ def dirs(self): return self._dirs + def hasdir(self, dir): + return dir in self._dirs + def matches(self, match): '''generate a new manifest filtered by the match argument''' if match.always():