diff -r aaa76612b3c0 -r c624fb2c4239 mercurial/revset.py --- 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: