Mercurial > hg
comparison tests/test-impexp-branch.t @ 33960:4d40fd0283d8
tests: update test-impexp-branch to pass our import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 15:51:37 -0400 |
parents | 75be14993fda |
children | 4bc983568016 |
comparison
equal
deleted
inserted
replaced
33959:dc95caa1ec0d | 33960:4d40fd0283d8 |
---|---|
1 $ echo '[extensions]' >> $HGRCPATH | 1 $ echo '[extensions]' >> $HGRCPATH |
2 $ echo 'strip =' >> $HGRCPATH | 2 $ echo 'strip =' >> $HGRCPATH |
3 | 3 |
4 $ cat >findbranch.py <<EOF | 4 $ cat >findbranch.py <<EOF |
5 > import re, sys | 5 > from __future__ import absolute_import |
6 > import re | |
7 > import sys | |
6 > | 8 > |
7 > head_re = re.compile('^#(?:(?:\\s+([A-Za-z][A-Za-z0-9_]*)(?:\\s.*)?)|(?:\\s*))$') | 9 > head_re = re.compile('^#(?:(?:\\s+([A-Za-z][A-Za-z0-9_]*)(?:\\s.*)?)|(?:\\s*))$') |
8 > | 10 > |
9 > for line in sys.stdin: | 11 > for line in sys.stdin: |
10 > hmatch = head_re.match(line) | 12 > hmatch = head_re.match(line) |