Mercurial > public > mercurial-scm > hg-stable
diff mercurial/upgrade_utils/engine.py @ 46191:aba979b1b90b
upgrade: move `printrequirements()` to UpgradeOperation class
Part of refactor where we make things more arranged and integrated into single
`UpgradeOperation` class.
Differential Revision: https://phab.mercurial-scm.org/D9577
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 12 Dec 2020 18:09:16 +0530 |
parents | dfddcbb0c244 |
children | 85f7cf314b39 |
line wrap: on
line diff
--- a/mercurial/upgrade_utils/engine.py Sat Dec 12 18:00:18 2020 +0530 +++ b/mercurial/upgrade_utils/engine.py Sat Dec 12 18:09:16 2020 +0530 @@ -429,7 +429,7 @@ # The sorted() makes execution deterministic. for p, kind, st in sorted(srcrepo.store.vfs.readdir(b'', stat=True)): if not _filterstorefile( - srcrepo, dstrepo, upgrade_op.requirements, p, kind, st + srcrepo, dstrepo, upgrade_op.new_requirements, p, kind, st ): continue @@ -489,7 +489,7 @@ b'again\n' ) ) - scmutil.writereporequirements(srcrepo, upgrade_op.requirements) + scmutil.writereporequirements(srcrepo, upgrade_op.new_requirements) # The lock file from the old store won't be removed because nothing has a # reference to its new location. So clean it up manually. Alternatively, we