color: add test for record support
authorBrodie Rao <me+hg@dackz.net>
Fri, 09 Oct 2009 03:53:24 -0400
changeset 9579 c06e7581bbaa
parent 9578 341182ac95e4
child 9580 25858f9e65e8
color: add test for record support
tests/test-diff-color
tests/test-diff-color.out
--- a/tests/test-diff-color	Thu Oct 08 10:39:43 2009 +0200
+++ b/tests/test-diff-color	Fri Oct 09 03:53:24 2009 -0400
@@ -33,4 +33,18 @@
 hg diff --nodates --color=always
 
 echo '% --unified=2'
-hg diff --nodates -U 2  --color=always
\ No newline at end of file
+hg diff --nodates -U 2  --color=always
+
+echo "record=" >> $HGRCPATH
+echo "[ui]" >> $HGRCPATH
+echo "interactive=true" >> $HGRCPATH
+echo "[diff]" >> $HGRCPATH
+echo "git=True" >> $HGRCPATH
+
+echo % record
+chmod 0755 a
+hg record --color=always -m moda a <<EOF
+y
+y
+EOF
+echo
--- a/tests/test-diff-color.out	Thu Oct 08 10:39:43 2009 +0200
+++ b/tests/test-diff-color.out	Fri Oct 09 03:53:24 2009 -0400
@@ -23,3 +23,18 @@
 +dd
  a
  a
+% record
+diff --git a/a b/a
+old mode 100644
+new mode 100755
+1 hunks, 2 lines changed
+examine changes to 'a'? [Ynsfdaq?]  @@ -2,7 +2,7 @@
+ c
+ a
+ a
+-b
++dd
+ a
+ a
+ c
+record this change to 'a'? [Ynsfdaq?]