# HG changeset patch # User Augie Fackler # Date 1556912624 14400 # Node ID d811f17090a34d7eadd083e755f54ba6b315a11c # Parent a42cc325b682e932b9fc08414632b56346b79f85 repair: reword comments that I noticed while working on source formatting I think this is clearer, and one will also keep us from upsetting check-code when other formatting cleanups happen. Differential Revision: https://phab.mercurial-scm.org/D6339 diff -r a42cc325b682 -r d811f17090a3 mercurial/repair.py --- a/mercurial/repair.py Fri Apr 26 12:41:48 2019 +0200 +++ b/mercurial/repair.py Fri May 03 15:43:44 2019 -0400 @@ -366,8 +366,9 @@ striptrees(repo, tr, striprev, files) def striptrees(repo, tr, striprev, files): - if 'treemanifest' in repo.requirements: # safe but unnecessary - # otherwise + if 'treemanifest' in repo.requirements: + # This logic is safe if treemanifest isn't enabled, but also + # pointless, so we skip it if treemanifest isn't enabled. for unencoded, encoded, size in repo.store.datafiles(): if (unencoded.startswith('meta/') and unencoded.endswith('00manifest.i')): @@ -418,7 +419,9 @@ progress.complete() - if 'treemanifest' in repo.requirements: # safe but unnecessary otherwise + if 'treemanifest' in repo.requirements: + # This logic is safe if treemanifest isn't enabled, but also + # pointless, so we skip it if treemanifest isn't enabled. for dir in util.dirs(seenfiles): i = 'meta/%s/00manifest.i' % dir d = 'meta/%s/00manifest.d' % dir