Show More
@@ -117,8 +117,6 def makenarrowmanifestrevlog(mfrevlog, r | |||
|
117 | 117 | # at least some push operations. This will be used to wrap/exclude the |
|
118 | 118 | # child directories when using treemanifests. |
|
119 | 119 | def dirlog(self, d): |
|
120 | if d and not d.endswith('/'): | |
|
121 | d = d + '/' | |
|
122 | 120 | if not repo.narrowmatch().visitdir(d[:-1] or '.'): |
|
123 | 121 | return excludedmanifestrevlog(d) |
|
124 | 122 | result = super(narrowmanifestrevlog, self).dirlog(d) |
@@ -1058,6 +1058,8 def openrevlog(repo, cmd, file_, opts): | |||
|
1058 | 1058 | if 'treemanifest' not in repo.requirements: |
|
1059 | 1059 | raise error.Abort(_("--dir can only be used on repos with " |
|
1060 | 1060 | "treemanifest enabled")) |
|
1061 | if not dir.endswith('/'): | |
|
1062 | dir = dir + '/' | |
|
1061 | 1063 | dirlog = repo.manifestlog._revlog.dirlog(dir) |
|
1062 | 1064 | if len(dirlog): |
|
1063 | 1065 | r = dirlog |
General Comments 0
You need to be logged in to leave comments.
Login now