comparison mercurial/context.py @ 4414:b6146466b92a

context: fix workingfilectx._changectx
author Matt Mackall <mpm@selenic.com>
date Mon, 07 May 2007 22:30:36 -0500
parents 7e1c8a565a4f
children 0912d8df5e19 3c7fc13c4bfa
comparison
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