# HG changeset patch # User Bryan O'Sullivan # Date 2012-06-01 22:50:22 # Node ID eeb464ed7275f88157c7882b907082e91270d711 # Parent fdf99e0f60f36009d925da71088c73ab302725dd 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)