hgext/remotefilelog/fileserverclient.py
changeset 47012 d55b71393907
parent 46113 59fa3890d40a
child 47092 102a50746bc5
equal deleted inserted replaced
46992:5fa019ceb499 47012:d55b71393907
    12 import threading
    12 import threading
    13 import time
    13 import time
    14 import zlib
    14 import zlib
    15 
    15 
    16 from mercurial.i18n import _
    16 from mercurial.i18n import _
    17 from mercurial.node import bin, hex, nullid
    17 from mercurial.node import bin, hex
    18 from mercurial import (
    18 from mercurial import (
    19     error,
    19     error,
    20     pycompat,
    20     pycompat,
    21     revlog,
    21     revlog,
    22     sshpeer,
    22     sshpeer,
   597         if fetchhistory:
   597         if fetchhistory:
   598             missingids.update(historystore.getmissing(idstocheck))
   598             missingids.update(historystore.getmissing(idstocheck))
   599 
   599 
   600         # partition missing nodes into nullid and not-nullid so we can
   600         # partition missing nodes into nullid and not-nullid so we can
   601         # warn about this filtering potentially shadowing bugs.
   601         # warn about this filtering potentially shadowing bugs.
   602         nullids = len([None for unused, id in missingids if id == nullid])
   602         nullids = len(
       
   603             [None for unused, id in missingids if id == self.repo.nullid]
       
   604         )
   603         if nullids:
   605         if nullids:
   604             missingids = [(f, id) for f, id in missingids if id != nullid]
   606             missingids = [
       
   607                 (f, id) for f, id in missingids if id != self.repo.nullid
       
   608             ]
   605             repo.ui.develwarn(
   609             repo.ui.develwarn(
   606                 (
   610                 (
   607                     b'remotefilelog not fetching %d null revs'
   611                     b'remotefilelog not fetching %d null revs'
   608                     b' - this is likely hiding bugs' % nullids
   612                     b' - this is likely hiding bugs' % nullids
   609                 ),
   613                 ),