[Updated] D11500: dirstate: Appease pytype

SimonSapin phabricator at mercurial-scm.org
Tue Sep 28 12:03:15 UTC 2021


Closed by commit rHGd07d38ef6362: dirstate: Appease pytype (authored by SimonSapin).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11500?vs=30422&id=30423

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11500/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11500

AFFECTED FILES
  mercurial/dirstatemap.py

CHANGE DETAILS

diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py
+++ b/mercurial/dirstatemap.py
@@ -575,6 +575,8 @@
             elif possibly_dirty:
                 item = DirstateItem.new_possibly_dirty()
             else:
+                assert size is not None
+                assert mtime is not None
                 size = size & rangemask
                 mtime = mtime & rangemask
                 item = DirstateItem.new_normal(mode, size, mtime)



To: SimonSapin, #hg-reviewers, Alphare
Cc: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210928/29b478e2/attachment-0002.html>


More information about the Mercurial-patches mailing list