Merge lp:~jelmer/brz/propose-overwrite into lp:brz/3.1

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/propose-overwrite
Merge into: lp:brz/3.1
Diff against target: 30 lines (+4/-2)
1 file modified
breezy/plugins/propose/cmds.py (+4/-2)
To merge this branch: bzr merge lp:~jelmer/brz/propose-overwrite
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+389937@code.launchpad.net

Commit message

Add --overwrite argument to 'brz propose'.

Description of the change

Add --overwrite argument to 'brz propose'.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'breezy/plugins/propose/cmds.py'
2--- breezy/plugins/propose/cmds.py 2020-07-30 21:37:51 +0000
3+++ breezy/plugins/propose/cmds.py 2020-08-28 00:02:38 +0000
4@@ -164,6 +164,7 @@
5 help='Allow collaboration from target branch maintainer(s)'),
6 Option('allow-empty',
7 help='Do not prevent empty merge proposals.'),
8+ Option('overwrite', help="Overwrite existing commits."),
9 ]
10 takes_args = ['submit_branch?']
11
12@@ -172,7 +173,7 @@
13 def run(self, submit_branch=None, directory='.', hoster=None,
14 reviewers=None, name=None, no_allow_lossy=False, description=None,
15 labels=None, prerequisite=None, commit_message=None, wip=False,
16- allow_collaboration=False, allow_empty=False):
17+ allow_collaboration=False, allow_empty=False, overwrite=False):
18 tree, branch, relpath = (
19 controldir.ControlDir.open_containing_tree_or_branch(directory))
20 if submit_branch is None:
21@@ -192,7 +193,8 @@
22 if name is None:
23 name = branch_name(branch)
24 remote_branch, public_branch_url = hoster.publish_derived(
25- branch, target, name=name, allow_lossy=not no_allow_lossy)
26+ branch, target, name=name, allow_lossy=not no_allow_lossy,
27+ overwrite=overwrite)
28 branch.set_push_location(remote_branch.user_url)
29 branch.set_submit_branch(target.user_url)
30 note(gettext('Published branch to %s') % public_branch_url)

Subscribers

People subscribed via source and target branches