--- a/mercurial/match.py Sat Dec 12 20:59:37 2015 -0800
+++ b/mercurial/match.py Sat Dec 12 09:57:05 2015 -0800
@@ -227,9 +227,15 @@
has potential matches in it or one of its subdirectories. This is
based on the match's primary, included, and excluded patterns.
+ 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.
'''
+ if self.prefix() and dir in self._fileroots:
+ return 'all'
if dir in self._excluderoots:
return False
if (self._includeroots and