diff tests/test-single-head.t @ 35400:4441705b7111

tests: remove (glob) annotations that were only for '\' matches # skip-blame because this was mechanically rewritten the following script. I ran it on both *.t and *.py, but none of the *.py changes were proper. All *.t ones appear to be, and they run without addition failures on both Windows and Linux. import argparse import os import re ap = argparse.ArgumentParser() ap.add_argument('path', nargs='+') opts = ap.parse_args() globre = re.compile(r'^(.*) \(glob\)(.*)$') for p in opts.path: tmp = p + '.tmp' with open(p, 'rb') as src, open(tmp, 'wb') as dst: for line in src: m = globre.match(line) if not m or '$LOCALIP' in line or '*' in line: dst.write(line) continue if '?' in line[:-3] or ('?' in line[:-3] and line[-3:] != '(?)'): dst.write(line) continue dst.write(m.group(1) + m.group(2) + '\n') os.unlink(p) os.rename(tmp, p)
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 10 Dec 2017 22:50:57 -0500
parents 66ecde8a704d
children 128dd940bedc
line wrap: on
line diff
--- a/tests/test-single-head.t	Sun Dec 10 22:45:35 2017 -0500
+++ b/tests/test-single-head.t	Sun Dec 10 22:50:57 2017 -0500
@@ -36,7 +36,7 @@
 
   $ mkcommit c_dB0
   $ hg push
-  pushing to $TESTTMP/single-head-server (glob)
+  pushing to $TESTTMP/single-head-server
   searching for changes
   adding changesets
   adding manifests
@@ -52,7 +52,7 @@
   (branches are permanent and global, did you want a bookmark?)
   $ mkcommit c_aC0
   $ hg push --new-branch
-  pushing to $TESTTMP/single-head-server (glob)
+  pushing to $TESTTMP/single-head-server
   searching for changes
   adding changesets
   adding manifests
@@ -66,7 +66,7 @@
   $ mkcommit c_dD0
   created new head
   $ hg push -f
-  pushing to $TESTTMP/single-head-server (glob)
+  pushing to $TESTTMP/single-head-server
   searching for changes
   adding changesets
   adding manifests
@@ -85,7 +85,7 @@
   (branch merge, don't forget to commit)
   $ mkcommit c_dE0
   $ hg push
-  pushing to $TESTTMP/single-head-server (glob)
+  pushing to $TESTTMP/single-head-server
   searching for changes
   adding changesets
   adding manifests
@@ -97,7 +97,7 @@
 
   $ mkcommit c_dF0
   $ hg push
-  pushing to $TESTTMP/single-head-server (glob)
+  pushing to $TESTTMP/single-head-server
   searching for changes
   adding changesets
   adding manifests
@@ -105,7 +105,7 @@
   added 1 changesets with 1 changes to 1 files
   $ hg commit --amend -m c_dF1
   $ hg push
-  pushing to $TESTTMP/single-head-server (glob)
+  pushing to $TESTTMP/single-head-server
   searching for changes
   adding changesets
   adding manifests
@@ -199,5 +199,5 @@
 actual stripping
 
   $ hg strip --config extensions.strip= --rev 'desc("c_dH0")'
-  saved backup bundle to $TESTTMP/client/.hg/strip-backup/fe47ea669cea-a41bf5a9-backup.hg (glob)
+  saved backup bundle to $TESTTMP/client/.hg/strip-backup/fe47ea669cea-a41bf5a9-backup.hg