Closed Bug 1354312 Opened 7 years ago Closed 7 years ago

Amend top commit with bug number when not using mq

Categories

(Developer Services :: Mercurial: bzexport, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(1 file)

I still like to have bzexport update my commit messages when not using mq.
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+
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
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: