changeset 35343 | 06987c6971be |
parent 35342 | 75520786ad2f |
child 35344 | 8f3f8b8dbab7 |
--- a/mercurial/upgrade.py Thu Dec 07 18:55:35 2017 +0100 +++ b/mercurial/upgrade.py Thu Dec 07 18:56:10 2017 +0100 @@ -14,6 +14,7 @@ from . import ( changelog, error, + hg, localrepo, manifest, revlog, @@ -841,9 +842,7 @@ oldcopy = repo.ui.copy try: repo.ui.__dict__.pop('copy', None) - dstrepo = localrepo.localrepository(repo.ui, - path=tmppath, - create=True) + dstrepo = hg.repository(repo.ui, path=tmppath, create=True) finally: repo.ui.copy = oldcopy