mercurial/context.py
changeset 4417 0912d8df5e19
parent 4209 dbc3846c09a1
parent 4414 b6146466b92a
child 4635 63b9d2deed48
equal deleted inserted replaced
4413:b008deae9910 4417:0912d8df5e19
   446         if workingctx:
   446         if workingctx:
   447             self._changectx = workingctx
   447             self._changectx = workingctx
   448 
   448 
   449     def __getattr__(self, name):
   449     def __getattr__(self, name):
   450         if name == '_changectx':
   450         if name == '_changectx':
   451             self._changectx = workingctx(repo)
   451             self._changectx = workingctx(self._repo)
   452             return self._changectx
   452             return self._changectx
   453         elif name == '_repopath':
   453         elif name == '_repopath':
   454             self._repopath = (self._repo.dirstate.copied(self._path)
   454             self._repopath = (self._repo.dirstate.copied(self._path)
   455                               or self._path)
   455                               or self._path)
   456             return self._repopath
   456             return self._repopath