indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise Python 2 will coerce unicode to str at module load time.
We don't like automatic string coercions.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https:
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This prevents the internals of Python from coercing a unicode to str
on Python 2 and makes tests run with HGUNICODEPEDANTRY=1 a lot
happier.
REPOSITORY
rHG M
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise we will call str.encode() on Python 2, which is wrong.
sysbytes() does encode('utf-8) on Python 3. But the source is
guaranteed ASCII, so it should
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise it coerces automatically.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6048
AFFECTED FILES
mercurial/thirdparty/attr/
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise Python 2 will coerce unicode to str.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6047
AFFECTED FILES
mercurial/utils
indygreg requested changes to this revision.
indygreg added a comment.
This revision now requires changes to proceed.
If we wanted to call ``sys.setdefaultencoding()``, we should call it once
during ``hg`` or at the top of ``mercurial/__init__.py``.
But we don't want to call ``sys.setdefa
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
While attempting to build the Inno installer, I was unable to
find a copy of add_path.exe from the source site previously
listed in the docs.
Some quick Go
indygreg added a comment.
I suspect
https://phab.mercurial-scm.org/rHG9fca5b056c0a2f673aefa64f7ec7488bd9188d9d made
things faster because the code before was using 1 I/O operation for every
entry. I would also not be surprised if CPython from that era did something
very inefficient with reg
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG88d4477ac4f6: tests: add more wildcards to test-extdiff.t
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5976?vs=14115&id=1
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG544035846830: url: don't pass strict argument on
Python 3 (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5975?vs=14114&id=1
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4028897dfa05: url: always use str for proxy configuration
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5952?vs=14113&id=1
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG140b542b0e59: tests: double escape \ in test-import-eol.t
and test-mq-eol.t (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG97e2442a4595: py3: port tinyproxy.py to work with Python 3
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5951?vs=14054&id=
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd20f1594ff4a: url: always access req._tunnel_host (authored
by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5950?vs=14053&id=14118
RE
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7396508ad92b: tests: use raw string in test-impexp-branch.t
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5973?vs=14111&id
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The diff tool (which is `echo`) runs in the background and output
order can therefore be non-deterministic. We need to glob over
the file names to account for t
indygreg created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The argument was removed in Python 3.4.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5975
AFFECTED FILES
mercurial/ur
indygreg updated this revision to Diff 14113.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5952?vs=14055&id=14113
REVISION DETAIL
https://phab.mercurial-scm.org/D5952
AFFECTED FILES
mercurial/url.py
CHANGE DETAILS
diff --git a/mercurial/url.py b/m
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The shell eats the \\.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5974
AFFECTED FILES
tests/test-import-eol.t
tests/test-mq
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
On first glance, the escaping of \s seems correct. However,
the shell eats the escape and we're left with '\s` in the
written file. Let's use a raw string so we
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3b0ba4575c8c: exchange: raise error.Abort instead of
ValueError (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5972?vs=1410
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG47c4ac5035a6: tests: remove -q from test-lfs-serve.t
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5971?vs=14104&id=14106
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Raising ValueError results in an uncaught exception and a traceback
being printed. In the context of servers, it can result in an HTTP
500 and an exception bein
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This will make it easier to observe a behavior change in the
next commit.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5971
AFF
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4eeed5eac0f4: remotefilelog: remove strkwargs() (authored
by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5958?vs=14082&id=14085
REVI
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe37bd7ccfee3: remotefilelog: use raw strings when looking
for variable names (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The previous commit activated previously unused code paths on
Python 3 and revealed that we were calling strkwargs() on a dict
that already had str keys. The on
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Keys in self.__dict__ and vars() are always str. So we need to use
raw strings to ensure lookups work on Python 3.
1. skip-blame just r'' prefixes
REPOSITOR
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG389ad992d953: revlog: use iterbytestr() (authored by
indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5947?vs=14049&id=14064
REVISION DET
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Previously, proxies didn't work on Python 3 for various reasons.
First, the keys to the "proxies" dict are fed into a
`setattr(self, "%s_open", ...)` call an
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
There were various str/bytes mismatches in the code. This caused
the proxy server to misbehave at run-time. The manifestation
was typically premature socket dis
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The getattr() was there to handle Python versions before 2.6, which
lacked this attribute.
We /might/ be able to further delete some code here. However, the
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise we iterate over integers in Python 3 and the
character compare fails.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D594
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG34ae00a14783: py3: use raw strings and %d for formatting
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5925?vs=14006&id=14
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Before the string compares on Python 3 failed because we were
comparing bytes to str. Using raw strings ensures we are
always comparing str.
While we're he
indygreg added a comment.
In https://phab.mercurial-scm.org/D5816#85618, @pulkit wrote:
> Should we add `# skip-blame` to this and rest of the series as they are
just adding of r'' prefixes?
I'm not sure. If there are `\` in the string, adding the `r''` can change the
value of th
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa5493a251ad3: attr: make some docstrings raw strings
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5817?vs=13744&id=13805
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9f69ddb807f7: tests: add syntax warnings on Python 3.8 in
python-zstandard (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGba7eaff26474: check-py3-compat: manually format and print
warnings (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5845?vs=1
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGeb14ab7db33e: doc: escape backslash (authored by indygreg,
committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5843?vs=13770&id=13797
REVISION DETAIL
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG01417ca7f2e2: check-py3-compat: provide filename to
ast.parse() (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5844?vs=1377
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG99b4c6d73a72: testparseutil: escape backslash in docstring
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5842?vs=13769&id=
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG033a0f4b4a5f: tests: use raw strings in test-help.t
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5841?vs=13768&id=13795
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7295279b9ea5: tests: escape backslash in makepatch.py
inline file (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5840?vs=13
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbd3f03d8cc9f: global: use raw strings for regular
expressions with escapes (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG20e62312e016: run-tests: set attributes in sorted order
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5831?vs=13758&id=137
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1ea1bba1c5be: tests: use raw strings in test-cbor.py
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5839?vs=13766&id=13793
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf16c03c7a3d7: tests: use raw string in test-check-code.t
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5837?vs=13764&id=13
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6dae1f31c6c9: showstack: use raw docstring (authored by
indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5838?vs=13765&id=13792
REVISION
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG17a6e063c886: run-tests: use raw strings for regular
expressions (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5825?vs=137
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfbb43514f342: revetbenchmarks: use raw string for regular
expression with escapes (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm
indygreg added a comment.
This is already fixed at https://github.com/python-attrs/attrs/pull/375.
We'll presumably get it on next vendor.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5817
To: indygreg, #hg-reviewers
Cc: durin42, mercurial-devel
_
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7d1798ec92a3: check-code: use raw string (authored by
indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5829?vs=13756&id=13788
REVISION DE
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdddf53473315: tests: use raw strings for regular
expressions with escapes (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D58
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8d4ee2d9ffb8: drawdag: use raw strings for docstrings
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5827?vs=13754&id=13786
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG595a67a301ee: check-config: use raw strings for regular
expressions (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5826?vs=
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG45a4789d3ff2: check-commit: use raw string for regular
expression (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5824?vs=13
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb5642239fb32: configitems: use raw strings for
hidden-{command,topic} items (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0f64091cc851: global: make some docstrings raw strings
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5816?vs=13743&id=1377
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfc09aafd3c36: convert: use raw string for regular
expressions (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5821?vs=13748&
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG47c92f8ed128: patch: properly escape \ in string literals
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5818?vs=13745&id=1
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfb9e11fdcbba: graphmod: use raw string (authored by
indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5820?vs=13747&id=13780
REVISION DETA
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7a90ff8cd14c: crecord: use raw string for regular
expression (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5819?vs=13746&i
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG14983ac4a764: tests: add optional Python 2.7 deprecation
output (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5823?vs=1375
indygreg created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
These are warnings from upstream test code. Let's just acknowledge them
for now. These should go away in a future python-zstandard release :)
REPOSITOR
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids a SyntaxWarning on Python 3.8 due to invalid \ escape.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5843
AFFECTED FIL
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids SyntaxWarning on Python 3.8 due to invalid \ escapes.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5841
AFFECTED FILE
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The warnings mechanism may print to stderr on Python 3. Independent buffering
of stdout and stderr can lead to warnings output not being printed properly.
Th
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This ensures any warning/error messages print a valid filename instead of
potentially ''.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-sc
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids some SyntaxWarning on Python 3.8 due to unescaped \.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5840
AFFECTED FILES
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This is funky. This inline Python code is part of a docstring, which
means the string is interpreted first. So any backslashes need double
escaping. So even tho
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
To avoid SyntaxWarning on Python 3.8 due to invalid \ escape.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5839
AFFECTED FILES
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Avoids a SyntaxWarning on Python 3.8 due to invalid \ escape.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5838
AFFECTED FILES
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
To avoid a SyntaxWarning on Python 3.8 due to invalid \ escape.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5837
AFFECTED FILES
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Python 3.8 preserves insertion order in serialized output
(https://bugs.python.org/issue34160). Older Pythons serialized
in sorted order.
Let's make insert
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Avoids SyntaxWarning due to invalid \ escape on Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5825
AFFECTED FILES
te
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids a SyntaxWarning in Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5829
AFFECTED FILES
contrib/check-code.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids a SyntaxWarning on Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5830
AFFECTED FILES
contrib/revsetbench
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Avoids SyntaxWarning on Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5828
AFFECTED FILES
tests/hghave.py
CHANGE DE
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Avoids SyntaxWarning for invalid \ escape on Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5827
AFFECTED FILES
tests
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids SyntaxWarning on Python 3.8 for invalid \ escapes.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5826
AFFECTED FILES
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Avoids SyntaxWarning on Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5824
AFFECTED FILES
contrib/check-commit
CHAN
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
pip 19 will emit a Python 2.7 deprecation warning when used with
Python 2.7. Let's add that as optional output to our pip test.
REPOSITORY
rHG Mercurial
REVIS
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Escape sequences like \w, \s, and \d are technically invalid
in str/bytes. This became a deprecation warning in Python 3.6
(https://bugs.python.org/issue27364).
indygreg created this revision.
Herald added a reviewer: martinvonz.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Python 3.8 emits a SyntaxWarning when a str/bytes contains invalid
\ escapes. Various docstrings in our code base contain inv
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
These strings are regular expressions. The "\." needs to be
string escaped. We use raw strings to avoid doing that and the
SyntaxWarning we'd receive otherwise
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Python 3.8 will emit a SyntaxWarning for str/bytes with invalid
escapes. This commit addresses 4 occurrences where we had a bare
\ in a str/bytes.
REPOSITORY
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids a SyntaxWarning on Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5821
AFFECTED FILES
hgext/convert/monot
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Needed to avoid a SyntaxWarning due to unescaped \ in Python 3.8.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5820
AFFECTED FILE
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
\s emits a SyntaxWarning in Python 3.8. Use a raw string to
avoid escaping the \.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids a SyntaxWarning in Python 3.8 due to invalid
\ escapes.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5817
AFFECTED
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9955776e2adf: py3: add alternate output on Python 3
(authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5807?vs=13707&id=13710
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1c85b790ddb0: zeroconf: Python 3 porting of vendored
library (authored by indygreg, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D5804?vs=13704&id=13708#toc
REPOSITORY
rHG
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa4392b5c69ce: py3: add Python 3 output for
test-flagprocessor.t (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5806?vs=1370
indygreg created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This is basically the same deal as https://phab.mercurial-scm.org/D5806.
Python 3's exception
printing output is different.
We had to tweak the re
indygreg created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The exception is being generated from ui.traceback(), which
simply calls traceback.format_*() to format exceptions. Since
the output from the standard
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
A quick glance through this module reveals that most of it "just works"
on Python 3 with the source transformer active. There are a few
places where we need to
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Since we're using the source transformer on Python 3, calls into
Zeroconf and return values from it are generally bytes.
But various socket functions require
indygreg added a comment.
I didn't realize this was already queued with formatting changes fixed in
flight. Ignore my latest upload.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5796
To: indygreg, #hg-reviewers
Cc: yuja, mjpieters, mercurial-devel
___
indygreg updated this revision to Diff 13697.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5796?vs=13687&id=13697
REVISION DETAIL
https://phab.mercurial-scm.org/D5796
AFFECTED FILES
tests/test-check-code.t
tests/test-demandimport.py
CHANGE DETAIL
901 - 1000 of 4345 matches
Mail list logo