Skip to main content

copy_from_previous_version

Function copy_from_previous_version 

Source
pub(crate) fn copy_from_previous_version(
    store: &Store,
    roots: &ScanRoots,
) -> Option<String>
Expand description

A new version’s first start (spec §4.2 “Upgrades”): copy every workspace the channel’s most recently written other version has, once, reading its database only. Ids and names are kept; each record is also kept as the row’s pre_upgrade. Returns the one to open: the one that version had open. None when there is nothing to copy.