diff mercurial/revset.py @ 32903:8e02829bec61

revset: fix negative ancestor spec to not return changectx objects The order was unstable because of this.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Jun 2017 12:25:23 +0900
parents 4710cc4dac99
children 27932a76a88d
line wrap: on
line diff
--- a/mercurial/revset.py	Mon May 01 05:57:36 2017 +0200
+++ b/mercurial/revset.py	Sun Jun 18 12:25:23 2017 +0900
@@ -392,7 +392,7 @@
             if len(c) > 1:
                 raise error.RepoLookupError(
                     _("revision in set has more than one child"))
-            r = c[0]
+            r = c[0].rev()
         else:
             cs.add(r)
     return subset & cs