hgext/git/manifest.py
changeset 44929 3679c88b7f4e
parent 44928 935c9f347bdb
child 44930 47ce28a78f4a
equal deleted inserted replaced
44928:935c9f347bdb 44929:3679c88b7f4e
   171             if te.type == pygit2.GIT_OBJ_TREE:
   171             if te.type == pygit2.GIT_OBJ_TREE:
   172                 for inner in self._walkonetree(
   172                 for inner in self._walkonetree(
   173                     self._git_repo[te.id], match, realname + b'/'
   173                     self._git_repo[te.id], match, realname + b'/'
   174                 ):
   174                 ):
   175                     yield inner
   175                     yield inner
   176             if not match(realname):
   176             elif match(realname):
   177                 continue
   177                 yield pycompat.fsencode(realname)
   178             yield pycompat.fsencode(realname)
       
   179 
   178 
   180     def walk(self, match):
   179     def walk(self, match):
   181         # TODO: this is a very lazy way to merge in the pending
   180         # TODO: this is a very lazy way to merge in the pending
   182         # changes. There is absolutely room for optimization here by
   181         # changes. There is absolutely room for optimization here by
   183         # being clever about walking over the sets...
   182         # being clever about walking over the sets...