hgext/narrow/narrowrevlog.py
changeset 37270 6ff8bd691fb8
parent 36097 66b4ffe90676
child 37372 1b2fa531fd7a
equal deleted inserted replaced
37269:14cd5290c4e6 37270:6ff8bd691fb8
   115     class narrowmanifestrevlog(mfrevlog.__class__):
   115     class narrowmanifestrevlog(mfrevlog.__class__):
   116         # This function is called via debug{revlog,index,data}, but also during
   116         # This function is called via debug{revlog,index,data}, but also during
   117         # at least some push operations. This will be used to wrap/exclude the
   117         # at least some push operations. This will be used to wrap/exclude the
   118         # child directories when using treemanifests.
   118         # child directories when using treemanifests.
   119         def dirlog(self, d):
   119         def dirlog(self, d):
   120             if d and not d.endswith('/'):
       
   121                 d = d + '/'
       
   122             if not repo.narrowmatch().visitdir(d[:-1] or '.'):
   120             if not repo.narrowmatch().visitdir(d[:-1] or '.'):
   123                 return excludedmanifestrevlog(d)
   121                 return excludedmanifestrevlog(d)
   124             result = super(narrowmanifestrevlog, self).dirlog(d)
   122             result = super(narrowmanifestrevlog, self).dirlog(d)
   125             makenarrowmanifestrevlog(result, repo)
   123             makenarrowmanifestrevlog(result, repo)
   126             return result
   124             return result