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