mercurial/subrepo.py
changeset 24409 30b8db6d0c04
parent 24302 6e092ea2eff1
child 24413 a8595176dd64
equal deleted inserted replaced
24408:caa6b6c65dc3 24409:30b8db6d0c04
   517 class hgsubrepo(abstractsubrepo):
   517 class hgsubrepo(abstractsubrepo):
   518     def __init__(self, ctx, path, state):
   518     def __init__(self, ctx, path, state):
   519         super(hgsubrepo, self).__init__(ctx.repo().ui)
   519         super(hgsubrepo, self).__init__(ctx.repo().ui)
   520         self._path = path
   520         self._path = path
   521         self._state = state
   521         self._state = state
       
   522         self._ctx = ctx
   522         r = ctx.repo()
   523         r = ctx.repo()
   523         root = r.wjoin(path)
   524         root = r.wjoin(path)
   524         create = not r.wvfs.exists('%s/.hg' % path)
   525         create = not r.wvfs.exists('%s/.hg' % path)
   525         self._repo = hg.repository(r.baseui, root, create=create)
   526         self._repo = hg.repository(r.baseui, root, create=create)
   526         self.ui = self._repo.ui
   527         self.ui = self._repo.ui