equal
deleted
inserted
replaced
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 |