Open Bug 1117632 Opened 8 years ago Updated 5 years ago

Implement some command that mimics the behavior of the qbackout extension in regards to the backout commit message.

Categories

(Developer Services :: Mercurial: firefoxtree, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: KWierso, Unassigned)

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/4269] )

The qbackout extension is really nice to use since it includes the bug numbers from the backed out revisions in the new backout commit message automatically.

I would really like to be able to use something like it that isn't based on mq, but still gives me a really nice backout commit message by default. 

Ideally, this command would be able to also use backout's --edit option to further edit the backout commit message (eg, to provide the reason for the backout).

Something like this:
hg notqbackout -e -r dc7317efb518

Which would then open the editor with the pre-filled commit message of "Backed out changeset dc7317efb518 (bug 1113065)"
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/4269]
I'm not too familiar with qbackout. But it sounds like you want an extension to `hg backout` that does what qbackout does. e.g. the backout commit message would be pre-formatted with something reasonable from the parsed commit messages of the commits being backed out.

I should be able to whip up something pretty easily. Maybe I'll do it from the plane today.
(In reply to Gregory Szorc [:gps] from comment #1)
> I'm not too familiar with qbackout. But it sounds like you want an extension
> to `hg backout` that does what qbackout does. e.g. the backout commit
> message would be pre-formatted with something reasonable from the parsed
> commit messages of the commits being backed out.
> 
> I should be able to whip up something pretty easily. Maybe I'll do it from
> the plane today.

Yep. Here's qbackout's source: https://bitbucket.org/sfink/qbackout/src/1a7995136c68ab31187eccb2828b87c988ab1954/__init__.py?at=default with the bug scraping regex at line 25.
This bug is for firefoxtree so I filed a new bug for my implementation: bug 1121211.
You need to log in before you can comment on or make changes to this bug.