changeset 23699:fe17a6fb220d

filectx.parents: also fetch the filelog of rename source too we are going to need this filelog for the linkrev adjustment, so we better normalise the list and have the filelog in all case. This is done in a previous changeset to help readability.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 23 Dec 2014 18:30:46 -0800
parents 9a02f7517939
children a4958cdb2202
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Tue Dec 30 15:51:14 2014 -0600
+++ b/mercurial/context.py	Tue Dec 23 18:30:46 2014 -0800
@@ -749,7 +749,7 @@
             # As null id have alway been filtered out in the previous list
             # comprehension, inserting to 0 will always result in "replacing
             # first nullid parent with rename information.
-            pl.insert(0, (r[0], r[1], None))
+            pl.insert(0, (r[0], r[1], self._repo.file(r[0])))
 
         return [filectx(self._repo, p, fileid=n, filelog=l) for p, n, l in pl]