mercurial/subrepo.py
branchstable
changeset 18520 751135cca13c
parent 18510 f254ab6207ae
child 18851 a60963c02f92
equal deleted inserted replaced
18519:ca430fb6a668 18520:751135cca13c
   421         self._repo = hg.repository(r.baseui, root, create=create)
   421         self._repo = hg.repository(r.baseui, root, create=create)
   422         for s, k in [('ui', 'commitsubrepos')]:
   422         for s, k in [('ui', 'commitsubrepos')]:
   423             v = r.ui.config(s, k)
   423             v = r.ui.config(s, k)
   424             if v:
   424             if v:
   425                 self._repo.ui.setconfig(s, k, v)
   425                 self._repo.ui.setconfig(s, k, v)
       
   426         self._repo.ui.setconfig('ui', '_usedassubrepo', 'True')
   426         self._initrepo(r, state[0], create)
   427         self._initrepo(r, state[0], create)
   427 
   428 
   428     @annotatesubrepoerror
   429     @annotatesubrepoerror
   429     def _initrepo(self, parentrepo, source, create):
   430     def _initrepo(self, parentrepo, source, create):
   430         self._repo._subparent = parentrepo
   431         self._repo._subparent = parentrepo