Show More
@@ -2287,7 +2287,7 b' class _orderedsetmixin(object):' | |||
|
2287 | 2287 | """return the first revision in the set""" |
|
2288 | 2288 | for r in self: |
|
2289 | 2289 | return r |
|
2290 | return None | |
|
2290 | raise ValueError('arg is an empty sequence') | |
|
2291 | 2291 | |
|
2292 | 2292 | def _last(self): |
|
2293 | 2293 | """return the last revision in the set""" |
@@ -355,10 +355,46 b' ancestor can accept 0 or more arguments' | |||
|
355 | 355 | $ log 'matching(6:7, "phase parents user date branch summary files description substate")' |
|
356 | 356 | 6 |
|
357 | 357 | 7 |
|
358 | ||
|
359 | Testing min and max | |
|
360 | ||
|
361 | max: simple | |
|
362 | ||
|
358 | 363 | $ log 'max(contains(a))' |
|
359 | 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 | 381 | $ log 'min(contains(a))' |
|
361 | 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 | 398 | $ log 'merge()' |
|
363 | 399 | 6 |
|
364 | 400 | $ log 'branchpoint()' |
General Comments 0
You need to be logged in to leave comments.
Login now