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) |