Show More
@@ -2287,7 +2287,7 b' class _orderedsetmixin(object):' | |||||
2287 | """return the first revision in the set""" |
|
2287 | """return the first revision in the set""" | |
2288 | for r in self: |
|
2288 | for r in self: | |
2289 | return r |
|
2289 | return r | |
2290 | return None |
|
2290 | raise ValueError('arg is an empty sequence') | |
2291 |
|
2291 | |||
2292 | def _last(self): |
|
2292 | def _last(self): | |
2293 | """return the last revision in the set""" |
|
2293 | """return the last revision in the set""" |
@@ -355,10 +355,46 b' ancestor can accept 0 or more arguments' | |||||
355 | $ log 'matching(6:7, "phase parents user date branch summary files description substate")' |
|
355 | $ log 'matching(6:7, "phase parents user date branch summary files description substate")' | |
356 | 6 |
|
356 | 6 | |
357 | 7 |
|
357 | 7 | |
|
358 | ||||
|
359 | Testing min and max | |||
|
360 | ||||
|
361 | max: simple | |||
|
362 | ||||
358 | $ log 'max(contains(a))' |
|
363 | $ log 'max(contains(a))' | |
359 | 5 |
|
364 | 5 | |
|
365 | ||||
|
366 | max: simple on unordered set) | |||
|
367 | ||||
|
368 | $ log 'max((4+0+2+5+7) and contains(a))' | |||
|
369 | 5 | |||
|
370 | ||||
|
371 | max: no result | |||
|
372 | ||||
|
373 | $ log 'max(contains(stringthatdoesnotappearanywhere))' | |||
|
374 | ||||
|
375 | max: no result on unordered set | |||
|
376 | ||||
|
377 | $ log 'max((4+0+2+5+7) and contains(stringthatdoesnotappearanywhere))' | |||
|
378 | ||||
|
379 | min: simple | |||
|
380 | ||||
360 | $ log 'min(contains(a))' |
|
381 | $ log 'min(contains(a))' | |
361 | 0 |
|
382 | 0 | |
|
383 | ||||
|
384 | min: simple on unordered set | |||
|
385 | ||||
|
386 | $ log 'min((4+0+2+5+7) and contains(a))' | |||
|
387 | 0 | |||
|
388 | ||||
|
389 | min: empty | |||
|
390 | ||||
|
391 | $ log 'min(contains(stringthatdoesnotappearanywhere))' | |||
|
392 | ||||
|
393 | min: empty on unordered set | |||
|
394 | ||||
|
395 | $ log 'min((4+0+2+5+7) and contains(stringthatdoesnotappearanywhere))' | |||
|
396 | ||||
|
397 | ||||
362 | $ log 'merge()' |
|
398 | $ log 'merge()' | |
363 | 6 |
|
399 | 6 | |
364 | $ log 'branchpoint()' |
|
400 | $ log 'branchpoint()' |
General Comments 0
You need to be logged in to leave comments.
Login now