# HG changeset patch # User Augie Fackler # Date 2019-05-03 19:43:44 # 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 --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -366,8 +366,9 @@ def stripmanifest(repo, striprev, tr, fi 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 @@ def rebuildfncache(ui, repo): 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