Show More
@@ -2208,11 +2208,12 b' def remove(ui, repo, m, prefix, after, f' | |||
|
2208 | 2208 | unit=_('subrepos')) |
|
2209 | 2209 | for subpath in subs: |
|
2210 | 2210 | submatch = matchmod.subdirmatcher(subpath, m) |
|
2211 | subprefix = repo.wvfs.reljoin(prefix, subpath) | |
|
2211 | 2212 | if subrepos or m.exact(subpath) or any(submatch.files()): |
|
2212 | 2213 | progress.increment() |
|
2213 | 2214 | sub = wctx.sub(subpath) |
|
2214 | 2215 | try: |
|
2215 | if sub.removefiles(submatch, prefix, after, force, subrepos, | |
|
2216 | if sub.removefiles(submatch, subprefix, after, force, subrepos, | |
|
2216 | 2217 | dryrun, warnings): |
|
2217 | 2218 | ret = 1 |
|
2218 | 2219 | except error.LookupError: |
@@ -847,8 +847,7 b' class hgsubrepo(abstractsubrepo):' | |||
|
847 | 847 | @annotatesubrepoerror |
|
848 | 848 | def removefiles(self, matcher, prefix, after, force, subrepos, |
|
849 | 849 | dryrun, warnings): |
|
850 | return cmdutil.remove(self.ui, self._repo, matcher, | |
|
851 | self.wvfs.reljoin(prefix, self._path), | |
|
850 | return cmdutil.remove(self.ui, self._repo, matcher, prefix, | |
|
852 | 851 | after, force, subrepos, dryrun) |
|
853 | 852 | |
|
854 | 853 | @annotatesubrepoerror |
General Comments 0
You need to be logged in to leave comments.
Login now