diff mercurial/revset.py @ 23704:c624fb2c4239

linkrev: also adjust linkrev when bootstrapping 'follow' revset The follow revset (used by `hg log --follow`) now uses the new 'introrev' method to bootstrap its traversal. This catches issues from linkrev-shadowing of the changesets introducing the version of a file in source changeset. A new test has been added to display pathological cases. Another test is affected because it was meant to test this behavior but actually failed to do so for half of the output. The output are now similar.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 29 Dec 2014 23:40:24 -0800
parents c237499a7fba
children 34364a4b25eb
line wrap: on
line diff
--- a/mercurial/revset.py	Tue Dec 23 16:14:39 2014 -0800
+++ b/mercurial/revset.py	Mon Dec 29 23:40:24 2014 -0800
@@ -807,7 +807,7 @@
             cx = c[x]
             s = set(ctx.rev() for ctx in cx.ancestors(followfirst=followfirst))
             # include the revision responsible for the most recent version
-            s.add(cx.linkrev())
+            s.add(cx.introrev())
         else:
             return baseset()
     else: