Closed
Bug 1485874
Opened 7 years ago
Closed 7 years ago
Make hgmo extension compatible with Mercurial 4.7
Categories
(Developer Services :: Mercurial: hg.mozilla.org, enhancement)
Developer Services
Mercurial: hg.mozilla.org
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sheehan, Assigned: sheehan)
References
Details
Attachments
(9 files)
95.51 KB,
text/plain
|
Details | |
46 bytes,
text/x-phabricator-request
|
gps
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
gps
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
gps
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
gps
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
gps
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
gps
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
gps
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
Details | Review |
The tests are failing under Mercurial 4.7. Looks like lots of work to do here. I've attached the logs separately as they are quite long.
Comment 1•7 years ago
|
||
I expect most issues with hgmo will be around templating in hgweb. Essentially, all data structures fed into the templating layer should be using wrapper types instead of e.g. straight lists.
Assignee | ||
Comment 2•7 years ago
|
||
I decided to just wrap the end list instead of making this a
generator as the command is legacy and it was faster.
Assignee | ||
Comment 3•7 years ago
|
||
We use the `repo[x]` syntax in several places throughout the
hgmo extension. Using that syntax for certain use cases is
no longer supported. The recommended methods to use are found
in the `scmutil` module.
Assignee | ||
Comment 4•7 years ago
|
||
Leftover from removing pre-4.6 compatibility code.
Assignee | ||
Comment 5•7 years ago
|
||
This commit adds an `automationrelevance` template to the `json`
template, allowing us to send the output of the `automationrelevance`
webcommand through the template layer instead of streaming
JSON directly. Due to this change, output from the raw
HTTP endpoint is no longer nicely indented. We now send the
response to a body file and then use `json.tool` to format
the output.
Assignee | ||
Comment 6•7 years ago
|
||
This lets us pass them to the template layer as a `mappinggenerator`
and brings us closer to 4.7 compatibility.
Assignee | ||
Comment 7•7 years ago
|
||
The `repoinfo` HTML template needs the `archives` field to be
set to properly render the navbar on the page, yet we aren't
sending anything to the templater to display. Under Mercurial
4.7 this causes a 500 to be thrown, so let's send this now.
Assignee | ||
Comment 8•7 years ago
|
||
After applying the series, we are compatible with Mercurial
4.7 on this extension.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → sheehan
Status: NEW → ASSIGNED
Comment 9•7 years ago
|
||
Comment on attachment 9011646 [details]
hgmo: wrap `csets` field as a `templateutil.mappinglist` (Bug 1485874) r?gps
Gregory Szorc [:gps] has approved the revision.
Attachment #9011646 -
Flags: review+
Comment 10•7 years ago
|
||
Comment on attachment 9011647 [details]
hgmo: get context using `scmutil` functions (Bug 1485874) r?gps
Gregory Szorc [:gps] has approved the revision.
Attachment #9011647 -
Flags: review+
Comment 11•7 years ago
|
||
Comment on attachment 9011648 [details]
hgmo: remove unused variable (Bug 1485874) r?gps
Gregory Szorc [:gps] has approved the revision.
Attachment #9011648 -
Flags: review+
Comment 12•7 years ago
|
||
Comment on attachment 9011649 [details]
hgmo: add `automationrelevance` JSON template (Bug 1485874) r?gps
Gregory Szorc [:gps] has approved the revision.
Attachment #9011649 -
Flags: review+
Comment 13•7 years ago
|
||
Comment on attachment 9011650 [details]
hgmo: create bugs, reviewers, backouts fields with generators (Bug 1485874) r?gps
Gregory Szorc [:gps] has approved the revision.
Attachment #9011650 -
Flags: review+
Comment 14•7 years ago
|
||
Comment on attachment 9011651 [details]
hgmo: send archives info to template layer in `repoinfo` webcommand (Bug 1485874) r?gps
Gregory Szorc [:gps] has approved the revision.
Attachment #9011651 -
Flags: review+
Comment 15•7 years ago
|
||
Comment on attachment 9011652 [details]
hgmo: mark as compatible with Mercurial 4.7 (Bug 1485874) r?gps
Gregory Szorc [:gps] has approved the revision.
Attachment #9011652 -
Flags: review+
Comment 16•7 years ago
|
||
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/01e4a82aa147
hgmo: wrap `csets` field as a `templateutil.mappinglist` r=gps
https://hg.mozilla.org/hgcustom/version-control-tools/rev/a772b50b7dd4
hgmo: get context using `scmutil` functions r=gps
https://hg.mozilla.org/hgcustom/version-control-tools/rev/9ebceb9a4da1
hgmo: remove unused variable r=gps
https://hg.mozilla.org/hgcustom/version-control-tools/rev/51c6ff20afac
hgmo: add `automationrelevance` JSON template r=gps
https://hg.mozilla.org/hgcustom/version-control-tools/rev/090cffc7f71c
hgmo: create bugs, reviewers, backouts fields with generators r=gps
https://hg.mozilla.org/hgcustom/version-control-tools/rev/8a320b3c78e7
hgmo: send archives info to template layer in `repoinfo` webcommand r=gps
https://hg.mozilla.org/hgcustom/version-control-tools/rev/7ca5514f709c
hgmo: mark as compatible with Mercurial 4.7 r=gps
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 17•7 years ago
|
||
Overlooked this when making the hgmo extension compatible
with Mercurial 4.7.
Comment 18•7 years ago
|
||
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/f607eb3657e1
hgtemplates: add automationrelevance template to `json.patch` r=gps
You need to log in
before you can comment on or make changes to this bug.
Description
•