Mercurial > public > mercurial-scm > hg
comparison mercurial/verify.py @ 47365:f39df5545cf2
verify: use some intermediate variables instead of a multi-liner
This is shorter and easier to read as the indentation remains the same.
Differential Revision: https://phab.mercurial-scm.org/D10817
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 01 Jun 2021 09:11:07 +0200 |
parents | 80c690bf4953 |
children | 15f6887c9c68 |
comparison
equal
deleted
inserted
replaced
47364:80c690bf4953 | 47365:f39df5545cf2 |
---|---|
492 for ff in fl.files(): | 492 for ff in fl.files(): |
493 try: | 493 try: |
494 storefiles.remove(ff) | 494 storefiles.remove(ff) |
495 except KeyError: | 495 except KeyError: |
496 if self.warnorphanstorefiles: | 496 if self.warnorphanstorefiles: |
497 self._warn( | 497 msg = _(b" warning: revlog '%s' not in fncache!") |
498 _(b" warning: revlog '%s' not in fncache!") % ff | 498 self._warn(msg % ff) |
499 ) | |
500 self.fncachewarned = True | 499 self.fncachewarned = True |
501 | 500 |
502 if not len(fl) and (self.havecl or self.havemf): | 501 if not len(fl) and (self.havecl or self.havemf): |
503 self._err(lr, _(b"empty or missing %s") % f) | 502 self._err(lr, _(b"empty or missing %s") % f) |
504 else: | 503 else: |