comparison mercurial/subrepo.py @ 41626:2c549abc6b85

subrepo: adjust subrepo prefix before calling subrepo.removefiles() (API) That's what we do with the matcher so it seems more consistent. Differential Revision: https://phab.mercurial-scm.org/D5882
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 07 Feb 2019 09:40:37 -0800
parents ea5ebb8f72bd
children f92844cb942c
comparison
equal deleted inserted replaced
41625:93620a4ba88d 41626:2c549abc6b85
845 True, dryrun=dryrun, interactive=interactive) 845 True, dryrun=dryrun, interactive=interactive)
846 846
847 @annotatesubrepoerror 847 @annotatesubrepoerror
848 def removefiles(self, matcher, prefix, after, force, subrepos, 848 def removefiles(self, matcher, prefix, after, force, subrepos,
849 dryrun, warnings): 849 dryrun, warnings):
850 return cmdutil.remove(self.ui, self._repo, matcher, 850 return cmdutil.remove(self.ui, self._repo, matcher, prefix,
851 self.wvfs.reljoin(prefix, self._path),
852 after, force, subrepos, dryrun) 851 after, force, subrepos, dryrun)
853 852
854 @annotatesubrepoerror 853 @annotatesubrepoerror
855 def revert(self, substate, *pats, **opts): 854 def revert(self, substate, *pats, **opts):
856 # reverting a subrepo is a 2 step process: 855 # reverting a subrepo is a 2 step process: