[PATCH 02 of 13] revset: drop unreachable code

Bryan O'Sullivan bos at serpentine.com
Fri Jun 1 17:52:00 CDT 2012


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1338591022 25200
# Node ID 014b54409187a9f70413f900da76b44fec2989d6
# Parent  247a8c2437e0321808b08f4c1b62788f1850e483
revset: drop unreachable code

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -1348,7 +1348,7 @@ def optimize(x, small):
                          '-' + getstring(x[1], _("can't negate that"))), small)
     elif op in 'string symbol negate':
         return smallbonus, x # single revisions are small
-    elif op == 'and' or op == 'dagrange':
+    elif op == 'and':
         wa, ta = optimize(x[1], True)
         wb, tb = optimize(x[2], True)
         w = min(wa, wb)


More information about the Mercurial-devel mailing list