diff mercurial/context.py @ 31076:0e07855e6054

context: also return ancestor's line range in blockancestors
author Denis Laxalde <denis.laxalde@logilab.fr>
date Mon, 16 Jan 2017 17:14:36 +0100
parents 21f1f97ab212
children c414e339e7af
line wrap: on
line diff
--- a/mercurial/context.py	Mon Jan 16 17:08:25 2017 +0100
+++ b/mercurial/context.py	Mon Jan 16 17:14:36 2017 +0100
@@ -1179,7 +1179,7 @@
             pl = pl[:1]
         if not pl:
             # The block originates from the initial revision.
-            yield c
+            yield c, linerange2
             continue
         inrange = False
         for p in pl:
@@ -1192,7 +1192,7 @@
                 continue
             visit[p.linkrev(), p.filenode()] = p, linerange1
         if inrange:
-            yield c
+            yield c, linerange2
 
 class committablectx(basectx):
     """A committablectx object provides common functionality for a context that