comparison mercurial/upgrade.py @ 43000: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 373749982924
comparison
equal deleted inserted replaced
42999:bb6902cbbe23 43000:164bbf674bb6
559 559
560 with newvfs(newrl.indexfile, 'w'): 560 with newvfs(newrl.indexfile, 'w'):
561 pass # create all the directories 561 pass # create all the directories
562 562
563 util.copyfile(oldindex, newindex) 563 util.copyfile(oldindex, newindex)
564 if oldrl.opener.exists(olddata): 564 if oldrl.opener.exists(oldrl.datafile):
565 util.copyfile(olddata, newdata) 565 util.copyfile(olddata, newdata)
566 566
567 if not (unencodedname.endswith('00changelog.i') 567 if not (unencodedname.endswith('00changelog.i')
568 or unencodedname.endswith('00manifest.i')): 568 or unencodedname.endswith('00manifest.i')):
569 destrepo.svfs.fncache.add(unencodedname) 569 destrepo.svfs.fncache.add(unencodedname)