Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHGfe3303436b79: tests: remove Python 2 support code
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
( )
Alphare |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-mq-missingfiles.t (5 lines) | |||
M | tests/test-mq-qimport.t (5 lines) | |||
M | tests/test-notify.t (15 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
6dce3ce8a072 | 4e99c2613bc0 | Gregory Szorc | Feb 21 2022, 2:46 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | D12339 ui: use input() directly | |
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
Issue835: qpush fails immediately when patching a missing file, but | Issue835: qpush fails immediately when patching a missing file, but | ||||
remaining added files are still created empty which will trick a | remaining added files are still created empty which will trick a | ||||
future qrefresh. | future qrefresh. | ||||
$ cat > writelines.py <<EOF | $ cat > writelines.py <<EOF | ||||
> import sys | > import sys | ||||
> if sys.version_info[0] >= 3: | |||||
> encode = lambda x: x.encode('utf-8').decode('unicode_escape').encode('utf-8') | > encode = lambda x: x.encode('utf-8').decode('unicode_escape').encode('utf-8') | ||||
> else: | |||||
> encode = lambda x: x.decode('string_escape') | |||||
> path = sys.argv[1] | > path = sys.argv[1] | ||||
> args = sys.argv[2:] | > args = sys.argv[2:] | ||||
> assert (len(args) % 2) == 0 | > assert (len(args) % 2) == 0 | ||||
> | > | ||||
> f = open(path, 'wb') | > f = open(path, 'wb') | ||||
> for i in range(len(args) // 2): | > for i in range(len(args) // 2): | ||||
> count, s = args[2 * i:2 * i + 2] | > count, s = args[2 * i:2 * i + 2] | ||||
> count = int(count) | > count = int(count) |
$ cat > writelines.py <<EOF | $ cat > writelines.py <<EOF | ||||
> import sys | > import sys | ||||
> if sys.version_info[0] >= 3: | |||||
> encode = lambda x: x.encode('utf-8').decode('unicode_escape').encode('utf-8') | > encode = lambda x: x.encode('utf-8').decode('unicode_escape').encode('utf-8') | ||||
> else: | |||||
> encode = lambda x: x.decode('string_escape') | |||||
> path = sys.argv[1] | > path = sys.argv[1] | ||||
> args = sys.argv[2:] | > args = sys.argv[2:] | ||||
> assert (len(args) % 2) == 0 | > assert (len(args) % 2) == 0 | ||||
> | > | ||||
> f = open(path, 'wb') | > f = open(path, 'wb') | ||||
> for i in range(len(args) // 2): | > for i in range(len(args) // 2): | ||||
> count, s = args[2 * i:2 * i + 2] | > count, s = args[2 * i:2 * i + 2] | ||||
> count = int(count) | > count = int(count) |
$ cat > $TESTTMP/filter.py <<EOF | $ cat > $TESTTMP/filter.py <<EOF | ||||
> import io | > import io | ||||
> import re | > import re | ||||
> import sys | > import sys | ||||
> if sys.version_info[0] >= 3: | |||||
> sys.stdout = io.TextIOWrapper( | > sys.stdout = io.TextIOWrapper( | ||||
> sys.stdout.buffer, | > sys.stdout.buffer, | ||||
> sys.stdout.encoding, | > sys.stdout.encoding, | ||||
> sys.stdout.errors, | > sys.stdout.errors, | ||||
> newline="\n", | > newline="\n", | ||||
> line_buffering=sys.stdout.line_buffering, | > line_buffering=sys.stdout.line_buffering, | ||||
> ) | > ) | ||||
> print(re.sub("\n[ \t]", " ", sys.stdin.read()), end="") | > print(re.sub("\n[ \t]", " ", sys.stdin.read()), end="") | ||||
> EOF | > EOF | ||||
$ cat <<EOF >> $HGRCPATH | $ cat <<EOF >> $HGRCPATH | ||||
> [experimental] | > [experimental] | ||||
> evolution = true | > evolution = true | ||||
> | > | ||||
> [extensions] | > [extensions] |