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 |