comparison tests/test-push-checkheads-pruned-B4.t @ 35393: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 eb586ed5d8ce
children 1a09dad8b85a
comparison
equal deleted inserted replaced
35392:5feb782c7a95 35393:4441705b7111
46 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 46 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
47 $ cd server 47 $ cd server
48 $ mkcommit B0 48 $ mkcommit B0
49 $ cd ../client 49 $ cd ../client
50 $ hg pull 50 $ hg pull
51 pulling from $TESTTMP/B4/server (glob) 51 pulling from $TESTTMP/B4/server
52 searching for changes 52 searching for changes
53 adding changesets 53 adding changesets
54 adding manifests 54 adding manifests
55 adding file changes 55 adding file changes
56 added 1 changesets with 1 changes to 1 files 56 added 1 changesets with 1 changes to 1 files
76 76
77 Actual testing 77 Actual testing
78 -------------- 78 --------------
79 79
80 $ hg push 80 $ hg push
81 pushing to $TESTTMP/B4/server (glob) 81 pushing to $TESTTMP/B4/server
82 searching for changes 82 searching for changes
83 adding changesets 83 adding changesets
84 adding manifests 84 adding manifests
85 adding file changes 85 adding file changes
86 added 1 changesets with 1 changes to 1 files (+1 heads) 86 added 1 changesets with 1 changes to 1 files (+1 heads)