Mercurial > public > mercurial-scm > hg
comparison mercurial/subrepo.py @ 41628:ed046348675c
subrepo: adjust subrepo prefix before calling subrepo.add() (API)
Differential Revision: https://phab.mercurial-scm.org/D5884
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 07 Feb 2019 09:59:27 -0800 |
parents | f92844cb942c |
children | 5ee3c49fc9cd |
comparison
equal
deleted
inserted
replaced
41627:f92844cb942c | 41628:ed046348675c |
---|---|
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 |