changeset 43002:164bbf674bb6

upgrade: also copy data file Differential Revision: https://phab.mercurial-scm.org/D6903
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 27 Sep 2019 21:14:23 +0200
parents bb6902cbbe23
children 675a925b556d
files mercurial/upgrade.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/upgrade.py	Fri Sep 27 21:14:03 2019 +0200
+++ b/mercurial/upgrade.py	Fri Sep 27 21:14:23 2019 +0200
@@ -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')