Show More
@@ -1043,16 +1043,16 def last(repo, subset, x): | |||||
1043 | ss = subset.set() |
|
1043 | ss = subset.set() | |
1044 | os = getset(repo, spanset(repo), l[0]) |
|
1044 | os = getset(repo, spanset(repo), l[0]) | |
1045 | os.reverse() |
|
1045 | os.reverse() | |
1046 | bs = baseset() |
|
1046 | result = [] | |
1047 | it = iter(os) |
|
1047 | it = iter(os) | |
1048 | for x in xrange(lim): |
|
1048 | for x in xrange(lim): | |
1049 | try: |
|
1049 | try: | |
1050 | y = it.next() |
|
1050 | y = it.next() | |
1051 | if y in ss: |
|
1051 | if y in ss: | |
1052 |
|
|
1052 | result.append(y) | |
1053 | except (StopIteration): |
|
1053 | except (StopIteration): | |
1054 | break |
|
1054 | break | |
1055 | return bs |
|
1055 | return baseset(result) | |
1056 |
|
1056 | |||
1057 | def maxrev(repo, subset, x): |
|
1057 | def maxrev(repo, subset, x): | |
1058 | """``max(set)`` |
|
1058 | """``max(set)`` |
General Comments 0
You need to be logged in to leave comments.
Login now