Mercurial > hg
comparison mercurial/match.py @ 38958:b9f94d67ea73
match: add missing "return set()", add FIXME to test to doc a bug
These were both brought up during the codereview of D4130.
Differential Revision: https://phab.mercurial-scm.org/D4160
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Wed, 08 Aug 2018 17:03:05 -0700 |
parents | f356be1a7ba3 |
children | 27946fca8a05 |
comparison
equal
deleted
inserted
replaced
38957:f356be1a7ba3 | 38958:b9f94d67ea73 |
---|---|
908 return self._matcher.visitchildrenset('.') | 908 return self._matcher.visitchildrenset('.') |
909 if dir.startswith(self._pathprefix): | 909 if dir.startswith(self._pathprefix): |
910 return self._matcher.visitchildrenset(dir[len(self._pathprefix):]) | 910 return self._matcher.visitchildrenset(dir[len(self._pathprefix):]) |
911 if dir in self._pathdirs: | 911 if dir in self._pathdirs: |
912 return 'this' | 912 return 'this' |
913 return set() | |
913 | 914 |
914 def isexact(self): | 915 def isexact(self): |
915 return self._matcher.isexact() | 916 return self._matcher.isexact() |
916 | 917 |
917 def prefix(self): | 918 def prefix(self): |