comparison mercurial/match.py @ 35164:6864c405f023

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.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 30 Nov 2017 22:32:13 +0900
parents acabbc5ccd24
children 821d8a5ab4ff
comparison
equal deleted inserted replaced
35163:ee64e677c3cf 35164:6864c405f023
303 based on the match's primary, included, and excluded patterns. 303 based on the match's primary, included, and excluded patterns.
304 304
305 Returns the string 'all' if the given directory and all subdirectories 305 Returns the string 'all' if the given directory and all subdirectories
306 should be visited. Otherwise returns True or False indicating whether 306 should be visited. Otherwise returns True or False indicating whether
307 the given directory should be visited. 307 the given directory should be visited.
308
309 This function's behavior is undefined if it has returned False for
310 one of the dir's parent directories.
311 ''' 308 '''
312 return True 309 return True
313 310
314 def always(self): 311 def always(self):
315 '''Matcher will match everything and .files() will be empty -- 312 '''Matcher will match everything and .files() will be empty --