revset: add "reversed" as a synonym for "reverse"

Daniel Colascione (SEATTLE) dancol at fb.com
Mon Oct 12 21:12:55 UTC 2015


# HG changeset patch
# User Daniel Colascione <dancol at fb.com>
# Date 1444684285 25200
#      Mon Oct 12 14:11:25 2015 -0700
# Node ID 348e3483614878ac1049c836f4f3bb36127cae27
# Parent  a3fcc8e3136bd19012d28b863d6bf4429948c573
revset: add "reversed" as synonym for "reverse"

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -2193,6 +2193,7 @@
     "removes": removes,
     "rev": rev,
     "reverse": reverse,
+    "reversed": reverse,
     "roots": roots,
     "sort": sort,
     "secret": secret,
@@ -2422,7 +2423,7 @@
             w = 100 # very slow
         elif f == "ancestor":
             w = 1 * smallbonus
-        elif f in "reverse limit first _intlist":
+        elif f in "reverse reversed limit first _intlist":
             w = 0
         elif f in "sort":
             w = 10 # assume most sorts look at changelog


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20151012/4f565f9b/attachment.pgp>


More information about the Mercurial-devel mailing list