Details
Diff Detail
- Repository
- rDLDHG Mercurial loader
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build is green
See https://jenkins.softwareheritage.org/job/DLDHG/job/tox/31/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DLDHG/job/tox/32/ for more details.
I'm still not quite sure why we're translating this data specifically (and nothing else), but not to the point that I want to block this.
My feeling is that this is working around a presentation issue, and that if anything, we should be teaching the frontend how to interpret and present the raw value instead.
The whole logic of splitting the extra data on nul bytes will also yield surprising results if the transplant references a nodeid with a nul byte in it; but that's another issue altogether.
Build is green
See https://jenkins.softwareheritage.org/job/DLDHG/job/tox/36/ for more details.
I'm still not quite sure why we're translating this data specifically (and nothing else), but not to the point that I want to block this.
I think I was misled by the webapp conversion code for revision metadata in a sense that metadata should be JSON convertible.
My feeling is that this is working around a presentation issue, and that if anything, we should be teaching the frontend how to interpret and present the raw value instead.
As revision metadata already contain Mercurial node ids in hexadecimal format, I thought it will be better to get the same representation for the transplant_source extra
(which is the only ChangesetExtra storing a nodeid in binary format) instead of patching the conversion code of the webapp.
The whole logic of splitting the extra data on nul bytes will also yield surprising results if the transplant references a nodeid with a nul byte in it; but that's another issue altogether.
Hopefully, this mercurial feature does not seem widely used. Nevertheless, further investigations are needed to check if we can encounter that corner case.