Mercurial > public > mercurial-scm > hg-stable
diff mercurial/subrepo.py @ 37271:14cd5290c4e6
addremove: remove dry_run, similarity from scmutil.addremove (API)
Differential Revision: https://phab.mercurial-scm.org/D3000
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Sat, 31 Mar 2018 23:49:58 +0530 |
parents | 32857300846c |
children | 56df2ca5c032 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Tue Apr 03 12:16:19 2018 +0530 +++ b/mercurial/subrepo.py Sat Mar 31 23:49:58 2018 +0530 @@ -287,7 +287,7 @@ def add(self, ui, match, prefix, explicitonly, **opts): return [] - def addremove(self, matcher, prefix, opts, dry_run, similarity): + def addremove(self, matcher, prefix, opts): self.ui.warn("%s: %s" % (prefix, _("addremove is not supported"))) return 1 @@ -510,15 +510,14 @@ explicitonly, **opts) @annotatesubrepoerror - def addremove(self, m, prefix, opts, dry_run, similarity): + def addremove(self, m, prefix, opts): # In the same way as sub directories are processed, once in a subrepo, # always entry any of its subrepos. Don't corrupt the options that will # be used to process sibling subrepos however. opts = copy.copy(opts) opts['subrepos'] = True return scmutil.addremove(self._repo, m, - self.wvfs.reljoin(prefix, self._path), opts, - dry_run, similarity) + self.wvfs.reljoin(prefix, self._path), opts) @annotatesubrepoerror def cat(self, match, fm, fntemplate, prefix, **opts):