comparison tests/test-evolve-obshistory.t @ 2350:ea816b5c1cf6

obshistory: only display each revision once in debugobshistory When using a revision range, the same precursor could have been displayed more than once. Use a cache to display each revision only once. It's a fix until we found the nicest way to display obs history.
author Boris Feld <boris.feld@octobus.net>
date Fri, 12 May 2017 18:34:37 +0200
parents 521a18a10a06
children c07f752137f4
comparison
equal deleted inserted replaced
2349:521a18a10a06 2350:ea816b5c1cf6
610 "debugobshistory.node": "de7290d8b885", 610 "debugobshistory.node": "de7290d8b885",
611 "debugobshistory.rev": 1, 611 "debugobshistory.rev": 1,
612 "debugobshistory.shortdescription": "A0" 612 "debugobshistory.shortdescription": "A0"
613 } 613 }
614 ] 614 ]
615 $ hg debugobshistory 2:5
616 337fec4d2edc (2) A0
617 de7290d8b885 (1) A0
618 rewritten by test (*20*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
619 f257fde29c7a (3) A0
620 1ae8bc733a14 (4) A0
621 c7f044602e9b (5) A0
615 $ hg update de7290d8b885 622 $ hg update de7290d8b885
616 abort: hidden revision 'de7290d8b885'! 623 abort: hidden revision 'de7290d8b885'!
617 (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more) 624 (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more)
618 [255] 625 [255]
619 $ hg update --hidden 'min(desc(A0))' 626 $ hg update --hidden 'min(desc(A0))'