mercurial/subrepo.py
changeset 41628 ed046348675c
parent 41627 f92844cb942c
child 41629 5ee3c49fc9cd
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