comparison mercurial/subrepo.py @ 24132:b5898bf7119a

subrepo: annotate addremove with @annotatesubrepoerror
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 06 Feb 2015 20:39:20 -0500
parents 07c1a7d1ef69
children afed5d2e7985
comparison
equal deleted inserted replaced
24131:a2d869e22b5e 24132:b5898bf7119a
624 def add(self, ui, match, prefix, explicitonly, **opts): 624 def add(self, ui, match, prefix, explicitonly, **opts):
625 return cmdutil.add(ui, self._repo, match, 625 return cmdutil.add(ui, self._repo, match,
626 os.path.join(prefix, self._path), explicitonly, 626 os.path.join(prefix, self._path), explicitonly,
627 **opts) 627 **opts)
628 628
629 @annotatesubrepoerror
629 def addremove(self, m, prefix, opts, dry_run, similarity): 630 def addremove(self, m, prefix, opts, dry_run, similarity):
630 # In the same way as sub directories are processed, once in a subrepo, 631 # In the same way as sub directories are processed, once in a subrepo,
631 # always entry any of its subrepos. Don't corrupt the options that will 632 # always entry any of its subrepos. Don't corrupt the options that will
632 # be used to process sibling subrepos however. 633 # be used to process sibling subrepos however.
633 opts = copy.copy(opts) 634 opts = copy.copy(opts)