Bug 1739443 Comment 7 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

> Ensure hg works well with Python 3 (hg show ... doesn't work with py3 with current MozillaBuild)

This issue was because we customize hg's behaviour with a `mercurial.ini` *in* `MozillaBuild`, but we were only putting it in the Python2 installation, but not Python3.
So, `hg config pager.pager` returns `less <with options>` with Python 2, but nothing with Python 3.
So, when running `hg show work` with Python 3, it:
* looks for the pager config, but finds nothing
* falls back to the default (`more`)
* looks for `more` in the `PATH` and finds `C:\Windows\System32\more.com` (!)
* Stops on [this line](https://www.mercurial-scm.org/repo/hg/file/6.0/mercurial/ui.py#l1527) during a `os.dup2(...)` operation after trying to run `more.com`
> Ensure hg works well with Python 3 (hg show ... doesn't work with py3 with current MozillaBuild)

This issue was because we customize hg's behaviour with a `mercurial.ini` *in* `MozillaBuild`, but we were only putting it in the Python2 installation, but not Python3.
So, `hg config pager.pager` returns `less <with options>` with Python 2, but nothing with Python 3.
So, when running `hg show work` with Python 3, it:
* looks for the pager config, but finds nothing
* falls back to the default (`more`)
* looks for `more` in the `PATH` and finds `C:\Windows\System32\more.com` (!)
* Stops on [this line](https://www.mercurial-scm.org/repo/hg/file/6.0/mercurial/ui.py#l1527) during a `os.dup2(...)` operation after trying to run `more.com`

[Bug created upstream](https://bz.mercurial-scm.org/show_bug.cgi?id=6614), but of course we can happily work around it.

Back to Bug 1739443 Comment 7