Amend top commit with bug number when not using mq

RESOLVED FIXED

Status

Developer Services
Mercurial: bzexport
RESOLVED FIXED
6 months ago
5 months ago

People

(Reporter: sfink, Assigned: sfink)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

6 months ago
I still like to have bzexport update my commit messages when not using mq.
(Assignee)

Comment 1

6 months ago
Created attachment 8855528 [details] [diff] [review]
Amend top commit with bug number when not using mq
Attachment #8855528 - Flags: review?(josh)

Comment 2

6 months ago
Comment on attachment 8855528 [details] [diff] [review]
Amend top commit with bug number when not using mq

Review of attachment 8855528 [details] [diff] [review]:
-----------------------------------------------------------------

::: hgext/bzexport/__init__.py
@@ +688,5 @@
>          mq.refresh(ui, repo, **opts)
> +    elif update_patch == 'amend':
> +        msg = repo[rev].description().splitlines()
> +        orig = msg[0]
> +        if not msg:

This check doesn't make sense if we've just grabbed msg[0] in the previous line, right?
Attachment #8855528 - Flags: review?(josh) → review+

Comment 3

5 months ago
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/3cdf2f0b729e
Amend top commit with bug number when not using mq, r=jdm
Status: ASSIGNED → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.