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