Patchwork [4,of,6] revset-_revbetween: use the `isasc` argument of baseset

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 17, 2014, 5:50 p.m.
Message ID <b2777949dbf1e876c4b4.1413568214@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/6380/
State Deferred
Headers show

Comments

Pierre-Yves David - Oct. 17, 2014, 5:50 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1413525469 25200
#      Thu Oct 16 22:57:49 2014 -0700
# Node ID b2777949dbf1e876c4b4ea7bc7bfa53f7dcaf6ef
# Parent  c69b5c641c47045052c8df00c6ac31f5c5d9eb65
revset-_revbetween: use the `isasc` argument of baseset

The data are provided sorted so we informs baseset of the order.

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -98,11 +98,11 @@  def _revsbetween(repo, roots, heads):
         return baseset()
     for rev in sorted(seen):
         for parent in seen[rev]:
             if parent in reachable:
                 reachable.add(rev)
-    return baseset(sorted(reachable))
+    return baseset(sorted(reachable), isasc=True)
 
 elements = {
     "(": (20, ("group", 1, ")"), ("func", 1, ")")),
     "~": (18, None, ("ancestor", 18)),
     "^": (18, None, ("parent", 18), ("parentpost", 18)),