# HG changeset patch # User Yuya Nishihara # Date 2017-11-30 13:32:13 # Node ID 6864c405f0235d5c42937658049f0405d5d1abdc # Parent ee64e677c3cfcfcb9d496f8da0ae3add762398ab match: remove doc about undefined behavior of visitdir() This was added by 8545bd381504, but core matchers support visitdir() of arbitrary locations since 2773540c3650, and verifier._verifymanifest() doesn't seem to strictly obey the restriction. I have no idea how important this API contract is for third-party extensions. That's why this patch is RFC. diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -305,9 +305,6 @@ class basematcher(object): Returns the string 'all' if the given directory and all subdirectories should be visited. Otherwise returns True or False indicating whether the given directory should be visited. - - This function's behavior is undefined if it has returned False for - one of the dir's parent directories. ''' return True