[Bug 6496] New: test-chg is flaky

2021-03-06 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=6496 Bug ID: 6496 Summary: test-chg is flaky Product: Mercurial Version: stable branch Hardware: PC OS: Linux Status: UNCONFIRMED Severity: feature Pr

D10123: typing: add type annotations to mercurial/utils/dateutil.py

2021-03-06 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY For now, I'm just typing around the edges to help find issues with TortoiseHg. If the custom `hgdate` type is useful elsewhere as I go, I'll move it to a fi

D10122: shelve: fix conversion of exceptions to strings flagged by pytype

2021-03-06 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY I've seen this done several ways and don't know what's correct. But pytype was unhappy about the previous way: FAILED: /mnt/c/Users/Matt/hg/tests/.p

D10125: typing: add type annotations to the public methods of mercurial/subrepoutil.py

2021-03-06 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10125 AFFECTED FILES mercurial/subrepoutil.py CHANGE DETAILS diff --git a/mer

D10124: typing: add type annotations to mercurial/i18n.py

2021-03-06 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY I'm a little unsure of this because `gettext()` clearly allows for passing unicode. But the comments seem to indicate that this is related to tests, and t

D10126: typing: add some type annotations to mercurial/phases.py

2021-03-06 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Some of these were helpful in typing other modules, and then I typed the easy-ish ones. Black forces the long `Phasedefaults` definition to be wrapped, w

D10128: typing: add some type annotations to mercurial/pathutil.py

2021-03-06 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10128 AFFECTED FILES mercurial/pathutil.py CHANGE DETAILS diff --git a/mercur

D10127: typing: add some type annotations to mercurial/util.py

2021-03-06 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10127 AFFECTED FILES mercurial/util.py CHANGE DETAILS diff --git a/mercurial/