# HG changeset patch # User Matt Mackall # Date 2010-06-04 15:26:55 # Node ID a6356b2695a3d355b2e8686a6f335d780c06a05b # Parent e581f3acc3385da5d5ddf547882f274d9f7e5b6d revset: fix - handling in the optimizer diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -486,7 +486,7 @@ def optimize(x, small): smallbonus = .5 op = x[0] - if op == '-': + if op == 'minus': return optimize(('and', x[1], ('not', x[2])), small) elif op == 'dagrange': return optimize(('and', ('func', ('symbol', 'descendants'), x[1]),