# HG changeset patch # User Pierre-Yves David # Date 2014-10-07 08:41:26 # Node ID 6f4109aa6877309c9dba9f4b70c252b47c71542e # Parent 2f1d2a42f040cf1b0c6a30d7250da939be7536d2 fullreposet: use `sort` to enforce the order The `ascending` and `descending` methods are useless. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -3020,14 +3020,10 @@ class fullreposet(_spanset): # we fallback to the old way (sad kitten) return super(fullreposet, self).__and__(other) - # preserve order: - # - # this is probably useless and harmful in multiple cases but matches - # the current behavior. if self.isascending(): - other.ascending() + other.sort() else: - other.descending() + other.sort(reverse) return other # tell hggettext to extract docstrings from these functions: