b.uncommit : module documentation

Part of bzrlib

Remove the last revision from the history of the current branch.
Function remove_tags Remove tags on revisions between old_tip and new_tip.
Function uncommit Remove the last revision from the supplied branch.
def remove_tags(branch, graph, old_tip, new_tip):
Remove tags on revisions between old_tip and new_tip.
ParametersbranchBranch to remove tags from
graphGraph object for branch repository
old_tipOld branch tip
new_tipNew branch tip
ReturnsNames of the removed tags
def uncommit(branch, dry_run=False, verbose=False, revno=None, tree=None, local=False, keep_tags=False):
Remove the last revision from the supplied branch.
Parametersdry_runDon't actually change anything
verbosePrint each step as you do it
revnoRemove back to this revision
localIf this branch is bound, only remove the revisions from the local branch. If this branch is not bound, it is an error to pass local=True.
keep_tagsWhether to keep tags pointing at the removed revisions around.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.