516 |
516 |
517 self._repo.vfs.write('hgrc', util.tonativeeol(''.join(lines))) |
517 self._repo.vfs.write('hgrc', util.tonativeeol(''.join(lines))) |
518 |
518 |
519 @annotatesubrepoerror |
519 @annotatesubrepoerror |
520 def add(self, ui, match, prefix, explicitonly, **opts): |
520 def add(self, ui, match, prefix, explicitonly, **opts): |
521 return cmdutil.add(ui, self._repo, match, |
521 return cmdutil.add(ui, self._repo, match, prefix, explicitonly, **opts) |
522 self.wvfs.reljoin(prefix, self._path), |
|
523 explicitonly, **opts) |
|
524 |
522 |
525 @annotatesubrepoerror |
523 @annotatesubrepoerror |
526 def addremove(self, m, prefix, opts): |
524 def addremove(self, m, prefix, opts): |
527 # In the same way as sub directories are processed, once in a subrepo, |
525 # In the same way as sub directories are processed, once in a subrepo, |
528 # always entry any of its subrepos. Don't corrupt the options that will |
526 # always entry any of its subrepos. Don't corrupt the options that will |