Mercurial > public > mercurial-scm > hg
comparison mercurial/verify.py @ 47359:9305824d3a97
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/D10811
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 01 Jun 2021 09:03:48 +0200 |
parents | ba8a9fbed897 |
children | 0693dc0b44fb |
comparison
equal
deleted
inserted
replaced
47358:ba8a9fbed897 | 47359:9305824d3a97 |
---|---|
209 if self.fncachewarned: | 209 if self.fncachewarned: |
210 ui.warn(HINT_FNCACHE) | 210 ui.warn(HINT_FNCACHE) |
211 if self.errors: | 211 if self.errors: |
212 ui.warn(_(b"%d integrity errors encountered!\n") % self.errors) | 212 ui.warn(_(b"%d integrity errors encountered!\n") % self.errors) |
213 if self.badrevs: | 213 if self.badrevs: |
214 ui.warn( | 214 msg = _(b"(first damaged changeset appears to be %d)\n") |
215 _(b"(first damaged changeset appears to be %d)\n") | 215 msg %= min(self.badrevs) |
216 % min(self.badrevs) | 216 ui.warn(msg) |
217 ) | |
218 return 1 | 217 return 1 |
219 return 0 | 218 return 0 |
220 | 219 |
221 def _verifychangelog(self): | 220 def _verifychangelog(self): |
222 """verify the changelog of a repository | 221 """verify the changelog of a repository |