Closed
Bug 1255931
Opened 8 years ago
Closed 8 years ago
Use @command for declaring commands
Categories
(Developer Services :: Mercurial: mozext, defect)
Developer Services
Mercurial: mozext
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gps, Assigned: gps)
Details
Attachments
(4 files)
Mercurial 3.8 breaks some legacy APIs around command declaration. I discovered this the hard way as part of running upstream tip locally. I have some patches to fix things.
Assignee | ||
Comment 1•8 years ago
|
||
commands.norepo has been removed in Mercurial 3.8. The argument to @command should be used instead. Review commit: https://reviewboard.mozilla.org/r/39575/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39575/
Attachment #8729744 -
Flags: review?(dminor)
Assignee | ||
Comment 2•8 years ago
|
||
Assigning a raw dict to cmdtable no longer works in Mercurial 3.8 because @command assigns attributes to the function that various parts of Mercurial look for. @command has been around for ages. Use it. Review commit: https://reviewboard.mozilla.org/r/39577/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39577/
Attachment #8729745 -
Flags: review?(dminor)
Assignee | ||
Comment 3•8 years ago
|
||
Populating the cmdtable dict directly is no longer supported in Mercurial 3.8. Review commit: https://reviewboard.mozilla.org/r/39579/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39579/
Attachment #8729746 -
Flags: review?(dminor)
Assignee | ||
Comment 4•8 years ago
|
||
Support for directly populating cmdtable has been dropped in Mercurial 3.8. Review commit: https://reviewboard.mozilla.org/r/39581/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39581/
Attachment #8729747 -
Flags: review?(dminor)
Comment 5•8 years ago
|
||
Comment on attachment 8729744 [details] MozReview Request: mozext: don't use commands.norepo (bug 1255931); r?dminor https://reviewboard.mozilla.org/r/39575/#review36317
Attachment #8729744 -
Flags: review?(dminor) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8729745 [details] MozReview Request: bzexport: use @command for declaring commands (bug 1255931); r?dminor https://reviewboard.mozilla.org/r/39577/#review36321
Attachment #8729745 -
Flags: review?(dminor) → review+
Comment 7•8 years ago
|
||
Comment on attachment 8729746 [details] MozReview Request: mqext: use @command for declaring commands (bug 1255931); r?dminor https://reviewboard.mozilla.org/r/39579/#review36323
Attachment #8729746 -
Flags: review?(dminor) → review+
Comment 8•8 years ago
|
||
Comment on attachment 8729747 [details] MozReview Request: qbackout: use @command for declaring commands (bug 1255931); r?dminor https://reviewboard.mozilla.org/r/39581/#review36325
Attachment #8729747 -
Flags: review?(dminor) → review+
Assignee | ||
Comment 9•8 years ago
|
||
https://hg.mozilla.org/hgcustom/version-control-tools/rev/f838c187e321fc6ed5590147946380e5f558f408 mozext: don't use commands.norepo (bug 1255931); r=dminor https://hg.mozilla.org/hgcustom/version-control-tools/rev/9263406bc3ca2d021461f675d0b2be3b6b78d8b2 bzexport: use @command for declaring commands (bug 1255931); r=dminor https://hg.mozilla.org/hgcustom/version-control-tools/rev/16f671cc3ad6c2385eb0eeb3d9d38246d841a23f mqext: use @command for declaring commands (bug 1255931); r=dminor https://hg.mozilla.org/hgcustom/version-control-tools/rev/9fa41247b7e69be9fbd81c953df93ab3614cd0b1 qbackout: use @command for declaring commands (bug 1255931); r=dminor
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•