Skip to main content

from_previous_version

Function from_previous_version 

Source
pub fn from_previous_version(db_dir: &Path, version: &str) -> Option<PathBuf>
Expand description

On the first start of version (no objects.db in db_dir yet), copy the databases of the newest older version in the same channel (or the channel’s pre-versioning ones, source_for), and record where they came from (CARRIED_FROM_FILE). Returns the version directory copied from, or None when there was nothing to do or the copy failed (logged; the version then starts fresh).