Mercurial > hg-stable
comparison tests/test-log.t @ 41100:6a63ba61e71f
log: fix line wrap on diffstat with -G/--graph (issue5800)
Differential Revision: https://phab.mercurial-scm.org/D5485
author | Navaneeth Suresh <navaneeths1998@gmail.com> |
---|---|
date | Thu, 27 Dec 2018 17:16:40 +0530 |
parents | 94ca3579e84e |
children | c96507f6875c |
comparison
equal
deleted
inserted
replaced
41099:f8f61cf246f5 | 41100:6a63ba61e71f |
---|---|
2635 user: test | 2635 user: test |
2636 date: Thu Jan 01 00:00:00 1970 +0000 | 2636 date: Thu Jan 01 00:00:00 1970 +0000 |
2637 summary: A1B1C1 | 2637 summary: A1B1C1 |
2638 | 2638 |
2639 $ cd .. | 2639 $ cd .. |
2640 | |
2641 --- going to test line wrap fix on using both --stat and -G (issue5800) | |
2642 $ hg init issue5800 | |
2643 $ cd issue5800 | |
2644 $ touch a | |
2645 $ hg ci -Am 'add a' | |
2646 adding a | |
2647 ---- now we are going to add 300 lines to a | |
2648 $ for i in `$TESTDIR/seq.py 1 300`; do echo $i >> a; done | |
2649 $ hg ci -m 'modify a' | |
2650 $ hg log | |
2651 changeset: 1:a98683e6a834 | |
2652 tag: tip | |
2653 user: test | |
2654 date: Thu Jan 01 00:00:00 1970 +0000 | |
2655 summary: modify a | |
2656 | |
2657 changeset: 0:ac82d8b1f7c4 | |
2658 user: test | |
2659 date: Thu Jan 01 00:00:00 1970 +0000 | |
2660 summary: add a | |
2661 | |
2662 ---- now visualise the changes we made without template | |
2663 $ hg log -l1 -r a98683e6a834 --stat -G | |
2664 @ changeset: 1:a98683e6a834 | |
2665 | tag: tip | |
2666 ~ user: test | |
2667 date: Thu Jan 01 00:00:00 1970 +0000 | |
2668 summary: modify a | |
2669 | |
2670 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2671 1 files changed, 300 insertions(+), 0 deletions(-) | |
2672 | |
2673 ---- with template | |
2674 $ hg log -l1 -r a98683e6a834 --stat -G -T bisect | |
2675 @ changeset: 1:a98683e6a834 | |
2676 | bisect: | |
2677 ~ tag: tip | |
2678 user: test | |
2679 date: Thu Jan 01 00:00:00 1970 +0000 | |
2680 summary: modify a | |
2681 | |
2682 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2683 1 files changed, 300 insertions(+), 0 deletions(-) | |
2684 | |
2685 $ hg log -l1 -r a98683e6a834 --stat -G -T changelog | |
2686 1970-01-01 test <test> | |
2687 | |
2688 @ * a: | |
2689 | modify a | |
2690 ~ [a98683e6a834] [tip] | |
2691 | |
2692 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2693 1 files changed, 300 insertions(+), 0 deletions(-) | |
2694 | |
2695 $ hg log -l1 -r a98683e6a834 --stat -G -T compact | |
2696 @ 1[tip] a98683e6a834 1970-01-01 00:00 +0000 test | |
2697 | modify a | |
2698 ~ | |
2699 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2700 1 files changed, 300 insertions(+), 0 deletions(-) | |
2701 | |
2702 $ hg log -l1 -r a98683e6a834 --stat -G -T default | |
2703 @ changeset: 1:a98683e6a834 | |
2704 | tag: tip | |
2705 ~ user: test | |
2706 date: Thu Jan 01 00:00:00 1970 +0000 | |
2707 summary: modify a | |
2708 | |
2709 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2710 1 files changed, 300 insertions(+), 0 deletions(-) | |
2711 | |
2712 $ hg log -l1 -r a98683e6a834 --stat -G -T phases | |
2713 @ changeset: 1:a98683e6a834 | |
2714 | tag: tip | |
2715 ~ phase: draft | |
2716 user: test | |
2717 date: Thu Jan 01 00:00:00 1970 +0000 | |
2718 summary: modify a | |
2719 | |
2720 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2721 1 files changed, 300 insertions(+), 0 deletions(-) | |
2722 | |
2723 $ hg log -l1 -r a98683e6a834 --stat -G -T show | |
2724 @ changeset: 1:a98683e6a834 | |
2725 | tag: tip | |
2726 ~ user: test | |
2727 date: Thu Jan 01 00:00:00 1970 +0000 | |
2728 summary: modify a | |
2729 | |
2730 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2731 1 files changed, 300 insertions(+), 0 deletions(-) | |
2732 | |
2733 $ hg log -l1 -r a98683e6a834 --stat -G -T status | |
2734 @ changeset: 1:a98683e6a834 | |
2735 | tag: tip | |
2736 ~ user: test | |
2737 date: Thu Jan 01 00:00:00 1970 +0000 | |
2738 summary: modify a | |
2739 files: | |
2740 M a | |
2741 | |
2742 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2743 1 files changed, 300 insertions(+), 0 deletions(-) | |
2744 | |
2745 $ hg log -l1 -r a98683e6a834 --stat -G -T xml | |
2746 <?xml version="1.0"?> | |
2747 <log> | |
2748 @ <logentry revision="1" node="a98683e6a8340830a7683909768b62871e84bc9d"> | |
2749 | <tag>tip</tag> | |
2750 ~ <author email="test">test</author> | |
2751 <date>1970-01-01T00:00:00+00:00</date> | |
2752 <msg xml:space="preserve">modify a</msg> | |
2753 </logentry> | |
2754 a | 300 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2755 1 files changed, 300 insertions(+), 0 deletions(-) | |
2756 | |
2757 </log> | |
2758 | |
2759 $ cd .. |