Show More
@@ -407,6 +407,12 b' def filelog(repo, subset, x):' | |||
|
407 | 407 | |
|
408 | 408 | return [r for r in subset if r in s] |
|
409 | 409 | |
|
410 | def first(repo, subset, x): | |
|
411 | """``first(set, [n])`` | |
|
412 | An alias for limit(). | |
|
413 | """ | |
|
414 | return limit(repo, subset, x) | |
|
415 | ||
|
410 | 416 | def follow(repo, subset, x): |
|
411 | 417 | """``follow([file])`` |
|
412 | 418 | An alias for ``::.`` (ancestors of the working copy's first parent). |
@@ -842,6 +848,7 b' symbols = {' | |||
|
842 | 848 | "descendants": descendants, |
|
843 | 849 | "file": hasfile, |
|
844 | 850 | "filelog": filelog, |
|
851 | "first": first, | |
|
845 | 852 | "follow": follow, |
|
846 | 853 | "grep": grep, |
|
847 | 854 | "head": head, |
@@ -955,7 +962,7 b' def optimize(x, small):' | |||
|
955 | 962 | w = 100 # very slow |
|
956 | 963 | elif f == "ancestor": |
|
957 | 964 | w = 1 * smallbonus |
|
958 | elif f in "reverse limit": | |
|
965 | elif f in "reverse limit first": | |
|
959 | 966 | w = 0 |
|
960 | 967 | elif f in "sort": |
|
961 | 968 | w = 10 # assume most sorts look at changelog |
General Comments 0
You need to be logged in to leave comments.
Login now