Mercurial > hg-stable
diff mercurial/subrepo.py @ 37153:335e19c6b7fa
remove: add dry-run functionality
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Wed, 21 Mar 2018 23:36:11 +0530 |
parents | a8a902d7176e |
children | 0348c778bf70 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Sat Mar 17 01:53:44 2018 -0400 +++ b/mercurial/subrepo.py Wed Mar 21 23:36:11 2018 +0530 @@ -355,7 +355,8 @@ def forget(self, match, prefix, dryrun): return ([], []) - def removefiles(self, matcher, prefix, after, force, subrepos, warnings): + def removefiles(self, matcher, prefix, after, force, subrepos, + dryrun, warnings): """remove the matched files from the subrepository and the filesystem, possibly by force and/or after the file has been removed from the filesystem. Return 0 on success, 1 on any warning. @@ -821,10 +822,11 @@ True, dryrun=dryrun) @annotatesubrepoerror - def removefiles(self, matcher, prefix, after, force, subrepos, warnings): + def removefiles(self, matcher, prefix, after, force, subrepos, + dryrun, warnings): return cmdutil.remove(self.ui, self._repo, matcher, self.wvfs.reljoin(prefix, self._path), - after, force, subrepos) + after, force, subrepos, dryrun) @annotatesubrepoerror def revert(self, substate, *pats, **opts):