equal
deleted
inserted
replaced
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 |