Show More
@@ -692,6 +692,11 b' verify pathauditor blocks evil filepaths' | |||||
692 |
|
692 | |||
693 | test that text below the --- >8 --- special string is ignored |
|
693 | test that text below the --- >8 --- special string is ignored | |
694 |
|
694 | |||
|
695 | $ cat <<'EOF' > $TESTTMP/lowercaseline.sh | |||
|
696 | > cat $1 | sed s/LINE/line/ | tee $1.new | |||
|
697 | > mv $1.new $1 | |||
|
698 | > EOF | |||
|
699 | ||||
695 | $ hg init ignore_below_special_string |
|
700 | $ hg init ignore_below_special_string | |
696 | $ cd ignore_below_special_string |
|
701 | $ cd ignore_below_special_string | |
697 | $ echo foo > foo |
|
702 | $ echo foo > foo | |
@@ -699,7 +704,7 b' test that text below the --- >8 --- spec' | |||||
699 | $ hg commit -m "foo" |
|
704 | $ hg commit -m "foo" | |
700 | $ cat >> .hg/hgrc <<EOF |
|
705 | $ cat >> .hg/hgrc <<EOF | |
701 | > [committemplate] |
|
706 | > [committemplate] | |
702 |
> changeset.commit = first |
|
707 | > changeset.commit = first LINE | |
703 | > HG: this is customized commit template |
|
708 | > HG: this is customized commit template | |
704 | > HG: {extramsg} |
|
709 | > HG: {extramsg} | |
705 | > HG: ------------------------ >8 ------------------------ |
|
710 | > HG: ------------------------ >8 ------------------------ | |
@@ -707,7 +712,7 b' test that text below the --- >8 --- spec' | |||||
707 | > EOF |
|
712 | > EOF | |
708 | $ echo foo2 > foo2 |
|
713 | $ echo foo2 > foo2 | |
709 | $ hg add foo2 |
|
714 | $ hg add foo2 | |
710 | $ HGEDITOR=cat hg ci |
|
715 | $ HGEDITOR="sh $TESTTMP/lowercaseline.sh" hg ci | |
711 | first line |
|
716 | first line | |
712 | HG: this is customized commit template |
|
717 | HG: this is customized commit template | |
713 | HG: Leave message empty to abort commit. |
|
718 | HG: Leave message empty to abort commit. | |
@@ -725,7 +730,7 b' a line' | |||||
725 |
|
730 | |||
726 | $ cat >> .hg/hgrc <<EOF |
|
731 | $ cat >> .hg/hgrc <<EOF | |
727 | > [committemplate] |
|
732 | > [committemplate] | |
728 |
> changeset.commit = first |
|
733 | > changeset.commit = first LINE2 | |
729 | > another line HG: ------------------------ >8 ------------------------ |
|
734 | > another line HG: ------------------------ >8 ------------------------ | |
730 | > HG: this is customized commit template |
|
735 | > HG: this is customized commit template | |
731 | > HG: {extramsg} |
|
736 | > HG: {extramsg} | |
@@ -733,7 +738,7 b' a line' | |||||
733 | > {diff()} |
|
738 | > {diff()} | |
734 | > EOF |
|
739 | > EOF | |
735 | $ echo foo >> foo |
|
740 | $ echo foo >> foo | |
736 | $ HGEDITOR=cat hg ci |
|
741 | $ HGEDITOR="sh $TESTTMP/lowercaseline.sh" hg ci | |
737 | first line2 |
|
742 | first line2 | |
738 | another line HG: ------------------------ >8 ------------------------ |
|
743 | another line HG: ------------------------ >8 ------------------------ | |
739 | HG: this is customized commit template |
|
744 | HG: this is customized commit template | |
@@ -754,7 +759,7 b' at the end' | |||||
754 |
|
759 | |||
755 | $ cat >> .hg/hgrc <<EOF |
|
760 | $ cat >> .hg/hgrc <<EOF | |
756 | > [committemplate] |
|
761 | > [committemplate] | |
757 |
> changeset.commit = first |
|
762 | > changeset.commit = first LINE3 | |
758 | > HG: ------------------------ >8 ------------------------foobar |
|
763 | > HG: ------------------------ >8 ------------------------foobar | |
759 | > second line |
|
764 | > second line | |
760 | > HG: this is customized commit template |
|
765 | > HG: this is customized commit template | |
@@ -763,7 +768,7 b' at the end' | |||||
763 | > {diff()} |
|
768 | > {diff()} | |
764 | > EOF |
|
769 | > EOF | |
765 | $ echo foo >> foo |
|
770 | $ echo foo >> foo | |
766 | $ HGEDITOR=cat hg ci |
|
771 | $ HGEDITOR="sh $TESTTMP/lowercaseline.sh" hg ci | |
767 | first line3 |
|
772 | first line3 | |
768 | HG: ------------------------ >8 ------------------------foobar |
|
773 | HG: ------------------------ >8 ------------------------foobar | |
769 | second line |
|
774 | second line |
General Comments 0
You need to be logged in to leave comments.
Login now