D7456: scmutil: add assertions to help pytype
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Thu Nov 21 08:35:21 EST 2019
Closed by commit rHG5b90a050082b: scmutil: add assertions to help pytype (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7456?vs=18245&id=18257
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7456/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7456
AFFECTED FILES
mercurial/scmutil.py
CHANGE DETAILS
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -1917,6 +1917,7 @@
def wrapped(tr):
repo = reporef()
if filtername:
+ assert repo is not None # help pytype
repo = repo.filtered(filtername)
func(repo, tr)
@@ -1936,6 +1937,7 @@
if cgheads:
htext = _(b" (%+d heads)") % cgheads
msg = _(b"added %d changesets with %d changes to %d files%s\n")
+ assert repo is not None # help pytype
repo.ui.status(msg % (cgchangesets, cgrevisions, cgfiles, htext))
if txmatch(_reportobsoletedsource):
To: mharbison72, #hg-reviewers, indygreg, dlax, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list