pyoxidizer: add the user site to `sys.path` on macOS
This allows 3rd party extensions that are installed with `pip` to be picked up,
similar to what we do on Windows. PyOxidizer has a bug that prevents this from
working without this extra help (see
95af358fcdfe), though it appears there's
another wrinkle here with `sys._framework` too.
I needed this to see if the problem[1] loading the keyring extension on Windows
also occurs on macOS (it doesn't).
[1] https://github.com/indygreg/PyOxidizer/issues/445
Differential Revision: https://phab.mercurial-scm.org/D11452
pyoxidizer: don't use in-memory for resources on macOS
When trying to debug something else on macOS, pyoxidized builds were failing
with the following message about pywatchman (and then cext.base85 when I
commented out pywatchman):
"cannot be loaded from memory but memory loading required"
I don't have any immediate plans to do more work on macOS, but maybe this will
save someone else time debugging this.
Differential Revision: https://phab.mercurial-scm.org/D11451
chistedit: rename a confusingly named variable
I would expect `ctxs` contain instances of some class from the
`context` module but it actually contains instances of `histeditrule`.
Differential Revision: https://phab.mercurial-scm.org/D11653
chistedit: remove some local variable and access state on self instead
Now that we've replaced the state dict by a class, some of the local
variables that just do `foo = self.foo` seem unnecessary.
Differential Revision: https://phab.mercurial-scm.org/D11652
chistedit: move changeview() onto state class
Differential Revision: https://phab.mercurial-scm.org/D11649
chistedit: move cycleaction() onto state class
Differential Revision: https://phab.mercurial-scm.org/D11648
chistedit: move changeaction() onto state class
Differential Revision: https://phab.mercurial-scm.org/D11647
chistedit: move swap() onto state class
Differential Revision: https://phab.mercurial-scm.org/D11646
chistedit: move makeselection() onto state class
Differential Revision: https://phab.mercurial-scm.org/D11645
chistedit: move changemode() onto state class
Differential Revision: https://phab.mercurial-scm.org/D11644