b.s.Unshelver(object) : class documentation

Part of bzrlib.shelf_ui View In Hierarchy

Unshelve changes into a working tree.
Class Method from_args Create an unshelver from commandline arguments.
Method __init__ Constructor.
Method run Perform the unshelving operation.
Method write_diff Write this operation's diff to self.write_diff_to.
Method show_changes Show the changes that this operation specifies.
@classmethod
def from_args(klass, shelf_id=None, action='apply', directory='.', write_diff_to=None):
Create an unshelver from commandline arguments.

The returned shelver will have a tree that is locked and should be unlocked.

Parametersshelf_idInteger id of the shelf, as a string.
actionaction to perform. May be 'apply', 'dry-run', 'delete', 'preview'.
directoryThe directory to unshelve changes into.
write_diff_toSee Unshelver.__init__().
def __init__(self, tree, manager, shelf_id, apply_changes=True, delete_shelf=True, read_shelf=True, show_diff=False, write_diff_to=None):
Constructor.
ParameterstreeThe working tree to unshelve into.
managerThe ShelveManager containing the shelved changes.
shelf_id
apply_changesIf True, apply the shelved changes to the working tree.
delete_shelfIf True, delete the changes from the shelf.
read_shelfIf True, read the changes from the shelf.
show_diffIf True, show the diff that would result from unshelving the changes.
write_diff_toA file-like object where the diff will be written to. If None, ui.ui_factory.make_output_stream() will be used.
def run(self):
Perform the unshelving operation.
def write_diff(self, merger):
Write this operation's diff to self.write_diff_to.
def show_changes(self, merger):
Show the changes that this operation specifies.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.