libbe.storage.util.upgrade

Handle conversion between the various BE storage formats.

class libbe.storage.util.upgrade.Upgrade_1_0_to_1_1(repo)

Methods

check_initial_version()
get_path(*args) Return the absolute path using args relative to .be.
set_version()
upgrade()
final_version = 'Bugs Everywhere Directory v1.1'
initial_version = 'Bugs Everywhere Tree 1 0'
class libbe.storage.util.upgrade.Upgrade_1_1_to_1_2(repo)

Methods

check_initial_version()
get_path(*args) Return the absolute path using args relative to .be.
set_version()
upgrade()
final_version = 'Bugs Everywhere Directory v1.2'
initial_version = 'Bugs Everywhere Directory v1.1'
class libbe.storage.util.upgrade.Upgrade_1_2_to_1_3(*args, **kwargs)

Methods

check_initial_version()
get_path(*args) Return the absolute path using args relative to .be.
set_version()
upgrade()
final_version = 'Bugs Everywhere Directory v1.3'
initial_version = 'Bugs Everywhere Directory v1.2'
class libbe.storage.util.upgrade.Upgrade_1_3_to_1_4(repo)

Methods

check_initial_version()
get_path(*args) Return the absolute path using args relative to .be.
set_version()
upgrade()
final_version = 'Bugs Everywhere Directory v1.4'
initial_version = 'Bugs Everywhere Directory v1.3'
class libbe.storage.util.upgrade.Upgrader(repo)

Class for converting between different on-disk BE storage formats.

Attributes

final_version
initial_version

Methods

check_initial_version()
get_path(*args) Return the absolute path using args relative to .be.
set_version()
upgrade()
check_initial_version()
final_version = None
get_path(*args)

Return the absolute path using args relative to .be.

initial_version = None
set_version()
upgrade()
libbe.storage.util.upgrade.upgrade(path, current_version, target_version='Bugs Everywhere Directory v1.4')

Call the appropriate upgrade function to convert current_version to target_version. If a direct conversion function does not exist, use consecutive conversion functions.

libbe.storage.util.upgrade.upgrader

alias of Upgrade_1_3_to_1_4

This Page