Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 13506:117990768fe0 stable
revset: fix typo when assigning weight to reverse and limit
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 24 Feb 2011 00:47:49 +0100 |
parents | 87f248e78173 |
children | cc4721ed7a2a afb2ed5b37a2 |
comparison
equal
deleted
inserted
replaced
13505:9b617c56eb65 | 13506:117990768fe0 |
---|---|
792 w = 30 # slower | 792 w = 30 # slower |
793 elif f == "contains": | 793 elif f == "contains": |
794 w = 100 # very slow | 794 w = 100 # very slow |
795 elif f == "ancestor": | 795 elif f == "ancestor": |
796 w = 1 * smallbonus | 796 w = 1 * smallbonus |
797 elif f == "reverse limit": | 797 elif f in "reverse limit": |
798 w = 0 | 798 w = 0 |
799 elif f in "sort": | 799 elif f in "sort": |
800 w = 10 # assume most sorts look at changelog | 800 w = 10 # assume most sorts look at changelog |
801 else: | 801 else: |
802 w = 1 | 802 w = 1 |