comparison mercurial/subrepo.py @ 41627:f92844cb942c

subrepo: adjust subrepo prefix before calling subrepo.forget() (API) Differential Revision: https://phab.mercurial-scm.org/D5883
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 07 Feb 2019 09:52:22 -0800
parents 2c549abc6b85
children ed046348675c
comparison
equal deleted inserted replaced
41626:2c549abc6b85 41627:f92844cb942c
838 ctx = self._repo[None] 838 ctx = self._repo[None]
839 return ctx.walk(match) 839 return ctx.walk(match)
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
848 def removefiles(self, matcher, prefix, after, force, subrepos, 847 def removefiles(self, matcher, prefix, after, force, subrepos,
849 dryrun, warnings): 848 dryrun, warnings):