From patchwork Fri Sep 27 20:22:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6903: upgrade: also copy data file From: phabricator X-Patchwork-Id: 41814 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Fri, 27 Sep 2019 20:22:52 +0000 marmoute created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6903 AFFECTED FILES mercurial/upgrade.py CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/upgrade.py b/mercurial/upgrade.py --- a/mercurial/upgrade.py +++ b/mercurial/upgrade.py @@ -561,7 +561,7 @@ pass # create all the directories util.copyfile(oldindex, newindex) - if oldrl.opener.exists(olddata): + if oldrl.opener.exists(oldrl.datafile): util.copyfile(olddata, newdata) if not (unencodedname.endswith('00changelog.i')