This is an archive of the discontinued Mercurial Phabricator instance.

help: access text files as resources under PyOxidizer
AbandonedPublic

Authored by mharbison72 on Nov 13 2019, 11:00 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

This allows hg help revsets to run on an oxidized Mac executable. I left the
old path in place for py2 support, as well as the other packaging apps.

On Windows, that same command simply prints:

abort: Incorrect function

... and doesn't put out a stacktrace even with --traceback.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

mharbison72 created this revision.Nov 13 2019, 11:00 PM

It looks like py2app puts it's name in sys.frozen[1], instead of just making it True/False. Should PyOxidizer do the same @indygreg ?

I don't have any idea why the error on Windows (I even disabled pager). I know I had trouble with hg.exe until I started setting Py_LegacyWindowsStdioFlag = 1.

[1] https://www.mercurial-scm.org/repo/hg/file/5.2/mercurial/util.py#l1829

mharbison72 abandoned this revision.Dec 28 2019, 12:52 PM

Superseded by D7622.