##// END OF EJS Templates
subrepo: adjust subrepo prefix before calling subrepo.addremove() (API)...
Martin von Zweigbergk -
r41778:5ee3c49f default
parent child Browse files
Show More
@@ -1047,8 +1047,9 b' def addremove(repo, matcher, prefix, opt'
1047 submatch = matchmod.subdirmatcher(subpath, m)
1047 submatch = matchmod.subdirmatcher(subpath, m)
1048 if opts.get('subrepos') or m.exact(subpath) or any(submatch.files()):
1048 if opts.get('subrepos') or m.exact(subpath) or any(submatch.files()):
1049 sub = wctx.sub(subpath)
1049 sub = wctx.sub(subpath)
1050 subprefix = repo.wvfs.reljoin(prefix, subpath)
1050 try:
1051 try:
1051 if sub.addremove(submatch, prefix, opts):
1052 if sub.addremove(submatch, subprefix, opts):
1052 ret = 1
1053 ret = 1
1053 except error.LookupError:
1054 except error.LookupError:
1054 repo.ui.status(_("skipping missing subrepository: %s\n")
1055 repo.ui.status(_("skipping missing subrepository: %s\n")
@@ -527,8 +527,7 b' class hgsubrepo(abstractsubrepo):'
527 # be used to process sibling subrepos however.
527 # be used to process sibling subrepos however.
528 opts = copy.copy(opts)
528 opts = copy.copy(opts)
529 opts['subrepos'] = True
529 opts['subrepos'] = True
530 return scmutil.addremove(self._repo, m,
530 return scmutil.addremove(self._repo, m, prefix, opts)
531 self.wvfs.reljoin(prefix, self._path), opts)
532
531
533 @annotatesubrepoerror
532 @annotatesubrepoerror
534 def cat(self, match, fm, fntemplate, prefix, **opts):
533 def cat(self, match, fm, fntemplate, prefix, **opts):
General Comments 0
You need to be logged in to leave comments. Login now