##// END OF EJS Templates
subrepo: adjust subrepo prefix before calling subrepo.forget() (API)...
Martin von Zweigbergk -
r41776:f92844cb default
parent child Browse files
Show More
@@ -2097,9 +2097,10 b' def forget(ui, repo, match, prefix, expl'
2097
2097
2098 for subpath in sorted(wctx.substate):
2098 for subpath in sorted(wctx.substate):
2099 sub = wctx.sub(subpath)
2099 sub = wctx.sub(subpath)
2100 submatch = matchmod.subdirmatcher(subpath, match)
2101 subprefix = repo.wvfs.reljoin(prefix, subpath)
2100 try:
2102 try:
2101 submatch = matchmod.subdirmatcher(subpath, match)
2103 subbad, subforgot = sub.forget(submatch, subprefix, dryrun=dryrun,
2102 subbad, subforgot = sub.forget(submatch, prefix, dryrun=dryrun,
2103 interactive=interactive)
2104 interactive=interactive)
2104 bad.extend([subpath + '/' + f for f in subbad])
2105 bad.extend([subpath + '/' + f for f in subbad])
2105 forgot.extend([subpath + '/' + f for f in subforgot])
2106 forgot.extend([subpath + '/' + f for f in subforgot])
@@ -840,8 +840,7 b' class hgsubrepo(abstractsubrepo):'
840
840
841 @annotatesubrepoerror
841 @annotatesubrepoerror
842 def forget(self, match, prefix, dryrun, interactive):
842 def forget(self, match, prefix, dryrun, interactive):
843 return cmdutil.forget(self.ui, self._repo, match,
843 return cmdutil.forget(self.ui, self._repo, match, prefix,
844 self.wvfs.reljoin(prefix, self._path),
845 True, dryrun=dryrun, interactive=interactive)
844 True, dryrun=dryrun, interactive=interactive)
846
845
847 @annotatesubrepoerror
846 @annotatesubrepoerror
General Comments 0
You need to be logged in to leave comments. Login now