# HG changeset patch # User Pierre-Yves David # Date 2014-10-03 08:31:05 # Node ID 966860f7a1a82ed1181ad63b80521f1fffd8bc1a # Parent c1107cb21df2116f29fe9162ce8c49c4c8527cb7 baseset: fix isascending and isdescending We now have sufficient information to return the proper value there. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2411,13 +2411,13 @@ class baseset(abstractsmartset): """Returns True if the collection is ascending order, False if not. This is part of the mandatory API for smartset.""" - return False + return self._ascending is not None and self._ascending def isdescending(self): """Returns True if the collection is descending order, False if not. This is part of the mandatory API for smartset.""" - return False + return self._ascending is not None and not self._ascending def first(self): if self: