mercurial/context.py
changeset 4414 b6146466b92a
parent 4207 7e1c8a565a4f
child 4417 0912d8df5e19
child 4638 3c7fc13c4bfa
equal deleted inserted replaced
4408:f700ea2b0689 4414:b6146466b92a
   444         if workingctx:
   444         if workingctx:
   445             self._changectx = workingctx
   445             self._changectx = workingctx
   446 
   446 
   447     def __getattr__(self, name):
   447     def __getattr__(self, name):
   448         if name == '_changectx':
   448         if name == '_changectx':
   449             self._changectx = workingctx(repo)
   449             self._changectx = workingctx(self._repo)
   450             return self._changectx
   450             return self._changectx
   451         elif name == '_repopath':
   451         elif name == '_repopath':
   452             self._repopath = (self._repo.dirstate.copied(self._path)
   452             self._repopath = (self._repo.dirstate.copied(self._path)
   453                               or self._path)
   453                               or self._path)
   454             return self._repopath
   454             return self._repopath