Closed Bug 1477519 Opened 6 years ago Closed 6 years ago

qimportbz not compatible with Mercurial 4.6.2.

Categories

(Developer Services :: Mercurial: qimportbz, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jorgk-bmo, Assigned: sheehan)

References

Details

Attachments

(3 files)

Setting up I new Windows machine I installed MozillaBuild 3.2 which gave me Mercurial 4.5.3.

I did a |mach bootstrap| and got Mercurial 4.6.2.

hg qimport bz:1477401 doesn't work in that combination, I get a python call stack.

Reinstalling MozillaBuild 3.2 and thus reverting the Mercurial update fixed the problem.
Hey Jorg, can you please attach the Python call stack you see when you use the extension? :)
Assignee: nobody → sheehan
Status: NEW → ASSIGNED
Flags: needinfo?(jorgk)
Blocks: hg46
This test has been broken for some time. It turns out bzexport changes
the patch name under the hood and this was not reflected in the test.
As a result, the default patch name already existed and the test
would enter an endless loop asking to rename the patch.
Under Mercurial 4.6.2, `patch.extract` is now a context manager.
Callers no longer need to unlink or remove the file, as it is
tied to the lifetime of the context manager. This commit makes
qimportbz use the context manager when running Mercurial 4.6.2.

We also register config options, to avoid devel-warnings in tests.
I didn't attach the log in the first place since I thought you'd try it yourself. Apparently that has happened already, so I'm not sure that you still need it. Here it is anyway.

Thanks for the quick action!
Flags: needinfo?(jorgk)
Comment on attachment 8994259 [details]
qimportbz: fix test under Mercurial 4.6.2 (Bug 1477519) r?gps

Gregory Szorc [:gps] has approved the revision.

https://phabricator.services.mozilla.com/D2298
Attachment #8994259 - Flags: review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/ba1e43d1ba0e
qimportbz: fix test under Mercurial 4.6.2 r=gps
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---
Comment on attachment 8994260 [details]
qimportbz: Make compatible with modern Mercurial versions (Bug 1477519) r?gps

Gregory Szorc [:gps] has approved the revision.

https://phabricator.services.mozilla.com/D2299
Attachment #8994260 - Flags: review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/c5de3f3f317d
qimportbz: Make compatible with modern Mercurial versions r=gps
Thanks, Jorg. I just wanted to ensure that the test failure I observed was the same error you were seeing in the wild. :)

I am closing this bug as resolved, since tests are passing and the stack trace in the attachment should no longer appear.

Please re-open the bug if any other problems arise!
Status: REOPENED → RESOLVED
Closed: 6 years ago6 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: