Mercurial > hg
comparison mercurial/revset.py @ 16859:eeb464ed7275
revset: drop unreachable code
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Fri, 01 Jun 2012 15:50:22 -0700 |
parents | d37d221334be |
children | e1aa1ed30030 |
comparison
equal
deleted
inserted
replaced
16858:fdf99e0f60f3 | 16859:eeb464ed7275 |
---|---|
1346 elif op == 'negate': | 1346 elif op == 'negate': |
1347 return optimize(('string', | 1347 return optimize(('string', |
1348 '-' + getstring(x[1], _("can't negate that"))), small) | 1348 '-' + getstring(x[1], _("can't negate that"))), small) |
1349 elif op in 'string symbol negate': | 1349 elif op in 'string symbol negate': |
1350 return smallbonus, x # single revisions are small | 1350 return smallbonus, x # single revisions are small |
1351 elif op == 'and' or op == 'dagrange': | 1351 elif op == 'and': |
1352 wa, ta = optimize(x[1], True) | 1352 wa, ta = optimize(x[1], True) |
1353 wb, tb = optimize(x[2], True) | 1353 wb, tb = optimize(x[2], True) |
1354 w = min(wa, wb) | 1354 w = min(wa, wb) |
1355 if wa > wb: | 1355 if wa > wb: |
1356 return w, (op, tb, ta) | 1356 return w, (op, tb, ta) |