Mercurial > hg
comparison tests/test-annotate.t @ 31991:55987fc8aba1
context: add an assertion checking linerange consistency in blockdescendants()
If this assertion fails, this indicates a flaw in the algorithm. So fail fast
instead of possibly producing wrong results.
Also extend the target line range in test to catch a merge changeset with all
its parents.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Fri, 14 Apr 2017 14:09:26 +0200 |
parents | 4c2c30bc38b4 |
children | 3e47a40d7a7a |
comparison
equal
deleted
inserted
replaced
31990:3e03a4b9ec8c | 31991:55987fc8aba1 |
---|---|
604 $ hg up 22 --quiet | 604 $ hg up 22 --quiet |
605 $ sed 's/3/+3/' baz > baz.new | 605 $ sed 's/3/+3/' baz > baz.new |
606 $ mv baz.new baz | 606 $ mv baz.new baz |
607 $ hg ci -m 'baz:3->+3' | 607 $ hg ci -m 'baz:3->+3' |
608 created new head | 608 created new head |
609 $ hg log -T '{rev}: {desc}\n' -r 'followlines(baz, 3:5, startrev=16, descend=True)' --graph | 609 $ hg log -T '{rev}: {desc}\n' -r 'followlines(baz, 2:5, startrev=16, descend=True)' --graph |
610 @ 29: baz:3->+3 | 610 @ 29: baz:3->+3 |
611 : | 611 : |
612 : o 26: baz:3+->3- | 612 : o 26: baz:3+->3- |
613 : : | 613 : : |
614 : o 23: baz:3->3+ | 614 : o 23: baz:3->3+ |
615 :/ | 615 :/ |
616 o 20: baz:4 | 616 o 20: baz:4 |
617 |\ | 617 |\ |
618 | ~ | 618 | o 19: baz:3 |
619 o 19: baz:3 | 619 |/ |
620 | | 620 o 18: baz:2 |
621 ~ | 621 |\ |
622 ~ ~ | |
622 | 623 |
623 check error cases | 624 check error cases |
624 $ hg up 23 --quiet | 625 $ hg up 23 --quiet |
625 $ hg log -r 'followlines()' | 626 $ hg log -r 'followlines()' |
626 hg: parse error: followlines takes at least 1 positional arguments | 627 hg: parse error: followlines takes at least 1 positional arguments |