Commits

Bryan O'Sullivan committed ceaca14

Add local regexps to ignore bits of output.

Comments (0)

Files changed (5)

en/examples/hook.simple

 #!/bin/bash
 
 #$ name: init
+#$ ignore: [0-9a-f]{40}
 
 hg init hook-test
 cd hook-test
 hg commit -m 'testing commit hook'
 
 #$ name: ext
+#$ ignore: ^date of commit.*
 
-echo 'commit.when = echo "date of commit:"; date' >> .hg/hgrc
+echo 'commit.when = echo -n "date of commit: "; date' >> .hg/hgrc
 echo a >> a
 hg commit -m 'i have two hooks'
 

en/examples/mq.tutorial

 ls .hg/patches
 
 #$ name: qrefresh
+#$ ignore: [0-9a-f]{12}
 
 echo 'line 2' >> file1
 hg diff

en/examples/template.simple

 #!/bin/bash
 
+# So many different bits of random output, it would be a nightmare to
+# ignore each individually.
+#$ ignore: .*
+
 hg init myrepo
 cd myrepo
 echo hello > hello
 hg clone http://hg.serpentine.com/tutorial/hello
 
 #$ name: ls
+#$ ignore: ^drwx.*
 
 ls -l
 ls hello

en/examples/tour-merge-conflict

 hg pull -u ../scam-son
 
 #$ name: merge
+#$ ignore: [<>]{7} /tmp/.*
 
 export HGMERGE=merge
 hg merge