tests: improve regexes in unified tests stable
authorBrodie Rao <brodie@bitheap.org>
Wed, 22 Sep 2010 16:05:58 -0500
branchstable
changeset 797 f0d8ac85ca21
parent 795 234c4314c6a4
child 798 bca8ef6e70b3
tests: improve regexes in unified tests [ original upstream message ]
tests/test-keyword.t
--- a/tests/test-keyword.t	Mon Sep 20 14:36:36 2010 -0500
+++ b/tests/test-keyword.t	Wed Sep 22 16:05:58 2010 -0500
@@ -26,14 +26,14 @@
   RCSfile = {file|basename},v
   Revision = {node|short}
   Source = {root}/{file},v
-  \$Author: test \$
+  $Author: test $
   \$Date: ..../../.. ..:..:.. \$
-  \$Header: .*/demo.txt,v ............ ..../../.. ..:..:.. test \$
-  \$Id: demo.txt,v ............ ..../../.. ..:..:.. test \$
-  \$RCSFile: demo.txt,v \$
-  \$RCSfile: demo.txt,v \$
+  \$Header: .*/demo\.txt,v ............ ..../../.. ..:..:.. test \$
+  \$Id: demo\.txt,v ............ ..../../.. ..:..:.. test \$
+  $RCSFile: demo.txt,v $
+  $RCSfile: demo.txt,v $
   \$Revision: ............ \$
-  \$Source: .*/demo.txt,v \$
+  \$Source: .*/demo\.txt,v \$
 
   $ hg --quiet kwdemo "Branch = {branches}"
   [extensions]
@@ -71,7 +71,7 @@
  hg bundle --base null ../test-keyword.hg
 
   $ hg pull -u "$TESTDIR"/test-keyword.hg
-  pulling from .*test-keyword.hg
+  pulling from .*test-keyword\.hg
   requesting all changes
   adding changesets
   adding manifests
@@ -199,11 +199,11 @@
   Subject: changeset in .*
   From: mercurial
   X-Hg-Notification: changeset a2392c293916
-  Message-Id: <hg.a2392c293916.*>
+  Message-Id: <hg\.a2392c293916.*>
   To: Test
   
   changeset a2392c293916 in .*
-  details: .*?cmd=changeset;node=a2392c293916
+  details: .*\?cmd=changeset;node=a2392c293916
   description:
   	addsym
   
@@ -222,11 +222,11 @@
   Subject: changeset in.*
   From: User Name <user@example.com>
   X-Hg-Notification: changeset ef63ca68695b
-  Message-Id: <hg.ef63ca68695b.*>
+  Message-Id: <hg\.ef63ca68695b.*>
   To: Test
   
   changeset ef63ca68695b in .*
-  details: .*?cmd=changeset;node=ef63ca68695b
+  details: .*\?cmd=changeset;node=ef63ca68695b
   description:
   	absym
   
@@ -648,7 +648,7 @@
   > default = ../Test
   > EOF
   $ hg incoming
-  comparing with .*test-keyword.t/Test
+  comparing with .*test-keyword\.t/Test
   searching for changes
   changeset:   2:bb948857c743
   tag:         tip