Patchwork [3,of,9,RFC] revset: added ordered lazyset subclasses

login
register
mail settings
Submitter Lucas Moscovicz
Date Feb. 12, 2014, 10:39 p.m.
Message ID <c75f012c0929a57395a0.1392244793@dev1037.prn2.facebook.com>
Download mbox | patch
Permalink /patch/3623/
State Superseded
Headers show

Comments

Lucas Moscovicz - Feb. 12, 2014, 10:39 p.m.
# HG changeset patch
# User Lucas Moscovicz <lmoscovicz@fb.com>
# Date 1391642648 28800
#      Wed Feb 05 15:24:08 2014 -0800
# Node ID c75f012c0929a57395a0a6b7a38d1ac865262943
# Parent  9a72b9c402c56b5d23f2aa85b681a287c93201d2
revset: added ordered lazyset subclasses

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -2147,6 +2147,12 @@ 
     def set(self):
         return set([r for r in self])
 
+class asclazyset(lazyset):
+    pass
+
+class desclazyset(lazyset):
+    pass
+
 class generatorset(object):
     def __init__(self, gen):
         self._gen = gen