comparison mercurial/verify.py @ 46790:5137896602d9 stable

typing: add an assertion to verify.py to appease pytype Differential Revision: https://phab.mercurial-scm.org/D10212
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 12 Mar 2021 23:28:56 -0500
parents ed0899e01628
children d4ba4d51f85f
comparison
equal deleted inserted replaced
46789:914ca0a98518 46790:5137896602d9
432 ) 432 )
433 for f, onefilenodes in pycompat.iteritems(subdirfilenodes): 433 for f, onefilenodes in pycompat.iteritems(subdirfilenodes):
434 filenodes.setdefault(f, {}).update(onefilenodes) 434 filenodes.setdefault(f, {}).update(onefilenodes)
435 435
436 if not dir and subdirnodes: 436 if not dir and subdirnodes:
437 assert subdirprogress is not None # help pytype
437 subdirprogress.complete() 438 subdirprogress.complete()
438 if self.warnorphanstorefiles: 439 if self.warnorphanstorefiles:
439 for f in sorted(storefiles): 440 for f in sorted(storefiles):
440 self._warn(_(b"warning: orphan data file '%s'") % f) 441 self._warn(_(b"warning: orphan data file '%s'") % f)
441 442