Patchwork D6903: upgrade: also copy data file

login
register
mail settings
Submitter phabricator
Date Sept. 27, 2019, 8:22 p.m.
Message ID <differential-rev-PHID-DREV-6rxe5d6ynjas66spewte-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41814/
State Superseded
Headers show

Comments

phabricator - Sept. 27, 2019, 8:22 p.m.
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

Patch

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')