Part of lp.codehosting.upgrade View In Hierarchy
Method | __init__ | Undocumented |
Method | get_bzrdir | Return the target_subdir bzrdir. |
Method | get_target_format | Return the format to upgrade a branch to. |
Class Method | iter_upgraders | Iterate through Upgraders given a target and logger. |
Class Method | start_all_upgrades | Upgrade listed branches to a target directory. |
Class Method | finish_all_upgrades | Upgrade listed branches to a target directory. |
Method | finish_upgrade | Create an upgraded version of self.branch in self.target_dir. |
Method | add_upgraded_branch | Add an upgraded branch to the target_subdir. |
Method | start_upgrade | Do the slow part of the upgrade process. |
Method | create_upgraded_repository | Create a repository in an upgraded format. |
Method | swap_in | Swap the upgraded branch into place. |
Method | has_tree_references | Determine whether the repository contains tree references. |
Method | mirror_branch | Mirror the actual branch from a bzr_branch to a target bzrdir. |
The repository format is always upgraded to a 2a format, but the branch format is left alone if the branch is a loom. :param branch: The bzr branch to upgrade :return: A Metadir format instance.
Parameters | branches | The Launchpad Branches to upgrade. |
target_dir | The directory to store upgraded versions in. |
Parameters | branches | The Launchpad Branches to upgrade. |
target_dir | The directory to store upgraded versions in. |
self.branch's branch (but not repository) is mirrored to the BzrDir and then the bzrdir is upgraded in the normal way.
Parameters | upgrade_dir | The directory to create the repository in. |
Returns | The created repository. |