mercurial/upgrade.py
changeset 43004 373749982924
parent 43002 164bbf674bb6
child 43031 e16ca9fde7aa
equal deleted inserted replaced
43003:675a925b556d 43004:373749982924
   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(oldrl.datafile):
   564     copydata = oldrl.opener.exists(oldrl.datafile)
       
   565     if copydata:
   565         util.copyfile(olddata, newdata)
   566         util.copyfile(olddata, newdata)
   566 
   567 
   567     if not (unencodedname.endswith('00changelog.i')
   568     if not (unencodedname.endswith('00changelog.i')
   568             or unencodedname.endswith('00manifest.i')):
   569             or unencodedname.endswith('00manifest.i')):
   569         destrepo.svfs.fncache.add(unencodedname)
   570         destrepo.svfs.fncache.add(unencodedname)
       
   571         if copydata:
       
   572             destrepo.svfs.fncache.add(unencodedname[:-2] + '.d')
   570 
   573 
   571 UPGRADE_CHANGELOG = object()
   574 UPGRADE_CHANGELOG = object()
   572 UPGRADE_MANIFEST = object()
   575 UPGRADE_MANIFEST = object()
   573 UPGRADE_FILELOG = object()
   576 UPGRADE_FILELOG = object()
   574 
   577