changeset 3965:2e5161335e65

context: fix a bug in workingfilectx.renamed
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 25 Dec 2006 17:43:47 +0100
parents 2308c39b9521
children b4eaa68dea1b
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Mon Dec 25 17:43:44 2006 +0100
+++ b/mercurial/context.py	Mon Dec 25 17:43:47 2006 +0100
@@ -482,7 +482,7 @@
         rp = self._repopath
         if rp == self._path:
             return None
-        return rp, self._workingctx._parents._manifest.get(rp, nullid)
+        return rp, self._changectx._parents[0]._manifest.get(rp, nullid)
 
     def parents(self):
         '''return parent filectxs, following copies if necessary'''