Patchwork D6903: upgrade: also copy data file

login
register
mail settings
Submitter phabricator
Date Sept. 28, 2019, 8:28 p.m.
Message ID <b7ea9279f414ce5ed2f8d70b94cebcf0@localhost.localdomain>
Download mbox | patch
Permalink /patch/41823/
State Not Applicable
Headers show

Comments

phabricator - Sept. 28, 2019, 8:28 p.m.
Closed by commit rHG164bbf674bb6: upgrade: also copy data file (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6903?vs=16665&id=16672

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6903/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6903

AFFECTED FILES
  mercurial/upgrade.py

CHANGE DETAILS




To: marmoute, #hg-reviewers, indygreg
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')