Mercurial > hg
comparison tests/test-bundle2-multiple-changegroups.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 | 3e3f4c03876b |
comparison
equal
deleted
inserted
replaced
35392:5feb782c7a95 | 35393:4441705b7111 |
---|---|
72 > EOF | 72 > EOF |
73 | 73 |
74 Pull the new commits in the clone | 74 Pull the new commits in the clone |
75 | 75 |
76 $ hg pull | 76 $ hg pull |
77 pulling from $TESTTMP/repo (glob) | 77 pulling from $TESTTMP/repo |
78 searching for changes | 78 searching for changes |
79 remote: changegroup1 | 79 remote: changegroup1 |
80 adding changesets | 80 adding changesets |
81 adding manifests | 81 adding manifests |
82 adding file changes | 82 adding file changes |
143 New heads are reported during transfer and properly accounted for in | 143 New heads are reported during transfer and properly accounted for in |
144 pullop.cgresult | 144 pullop.cgresult |
145 | 145 |
146 $ cd ../clone | 146 $ cd ../clone |
147 $ hg pull | 147 $ hg pull |
148 pulling from $TESTTMP/repo (glob) | 148 pulling from $TESTTMP/repo |
149 searching for changes | 149 searching for changes |
150 remote: changegroup1 | 150 remote: changegroup1 |
151 adding changesets | 151 adding changesets |
152 adding manifests | 152 adding manifests |
153 adding file changes | 153 adding file changes |
217 Removed heads are reported during transfer and properly accounted for in | 217 Removed heads are reported during transfer and properly accounted for in |
218 pullop.cgresult | 218 pullop.cgresult |
219 | 219 |
220 $ cd ../clone | 220 $ cd ../clone |
221 $ hg pull | 221 $ hg pull |
222 pulling from $TESTTMP/repo (glob) | 222 pulling from $TESTTMP/repo |
223 searching for changes | 223 searching for changes |
224 remote: changegroup1 | 224 remote: changegroup1 |
225 adding changesets | 225 adding changesets |
226 adding manifests | 226 adding manifests |
227 adding file changes | 227 adding file changes |