Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/subrepo.py @ 41664:16a49c778bde
forget: pass around uipathfn and use instead of m.rel() (API)
Differential Revision: https://phab.mercurial-scm.org/D5911
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 08 Feb 2019 13:08:01 -0800 |
parents | 6a447a3d1bd0 |
children | 1db5ae4b0dda |
comparison
equal
deleted
inserted
replaced
41663:6a447a3d1bd0 | 41664:16a49c778bde |
---|---|
353 ''' | 353 ''' |
354 walk recursively through the directory tree, finding all files | 354 walk recursively through the directory tree, finding all files |
355 matched by the match function | 355 matched by the match function |
356 ''' | 356 ''' |
357 | 357 |
358 def forget(self, match, prefix, dryrun, interactive): | 358 def forget(self, match, prefix, uipathfn, dryrun, interactive): |
359 return ([], []) | 359 return ([], []) |
360 | 360 |
361 def removefiles(self, matcher, prefix, uipathfn, after, force, subrepos, | 361 def removefiles(self, matcher, prefix, uipathfn, after, force, subrepos, |
362 dryrun, warnings): | 362 dryrun, warnings): |
363 """remove the matched files from the subrepository and the filesystem, | 363 """remove the matched files from the subrepository and the filesystem, |
834 def walk(self, match): | 834 def walk(self, match): |
835 ctx = self._repo[None] | 835 ctx = self._repo[None] |
836 return ctx.walk(match) | 836 return ctx.walk(match) |
837 | 837 |
838 @annotatesubrepoerror | 838 @annotatesubrepoerror |
839 def forget(self, match, prefix, dryrun, interactive): | 839 def forget(self, match, prefix, uipathfn, dryrun, interactive): |
840 return cmdutil.forget(self.ui, self._repo, match, prefix, | 840 return cmdutil.forget(self.ui, self._repo, match, prefix, uipathfn, |
841 True, dryrun=dryrun, interactive=interactive) | 841 True, dryrun=dryrun, interactive=interactive) |
842 | 842 |
843 @annotatesubrepoerror | 843 @annotatesubrepoerror |
844 def removefiles(self, matcher, prefix, uipathfn, after, force, subrepos, | 844 def removefiles(self, matcher, prefix, uipathfn, after, force, subrepos, |
845 dryrun, warnings): | 845 dryrun, warnings): |