Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG164bbf674bb6: upgrade: also copy data file
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
newindex = newvfs.join(newrl.indexfile) | newindex = newvfs.join(newrl.indexfile) | ||||
olddata = oldvfs.join(oldrl.datafile) | olddata = oldvfs.join(oldrl.datafile) | ||||
newdata = newvfs.join(newrl.datafile) | newdata = newvfs.join(newrl.datafile) | ||||
with newvfs(newrl.indexfile, 'w'): | with newvfs(newrl.indexfile, 'w'): | ||||
pass # create all the directories | pass # create all the directories | ||||
util.copyfile(oldindex, newindex) | util.copyfile(oldindex, newindex) | ||||
if oldrl.opener.exists(olddata): | if oldrl.opener.exists(oldrl.datafile): | ||||
util.copyfile(olddata, newdata) | util.copyfile(olddata, newdata) | ||||
if not (unencodedname.endswith('00changelog.i') | if not (unencodedname.endswith('00changelog.i') | ||||
or unencodedname.endswith('00manifest.i')): | or unencodedname.endswith('00manifest.i')): | ||||
destrepo.svfs.fncache.add(unencodedname) | destrepo.svfs.fncache.add(unencodedname) | ||||
UPGRADE_CHANGELOG = object() | UPGRADE_CHANGELOG = object() | ||||
UPGRADE_MANIFEST = object() | UPGRADE_MANIFEST = object() |