##// END OF EJS Templates
extensions: make `hg nonexistent` not crash with PyOxidizer...
extensions: make `hg nonexistent` not crash with PyOxidizer When running `hg nonexistent`, we try to look for extensions that provide that command. We do that by looking for files in the `hgext.__file__` directory. However, PyOxidizer doesn't provide a `__file__`, so we crash when running with PyOxidizer. We should be able to look for the command in built-in extensions, but we seem to already have code for skipping the scan when running in a frozen binary, so I just modified that code instead. By the way, it also seems like we should be able to search for extensions in the `hgext3rd` module, but we don't do that yet either (before or after this patch). Differential Revision: https://phab.mercurial-scm.org/D8750

File last commit:

r45571:3707f6e7 default
r45665:5d09a120 default
Show More
Cargo.toml
10 lines | 180 B | text/plain | TOMLLexer
Antoine Cezar
rhg: add rhg crate...
r45503 [package]
name = "rhg"
version = "0.1.0"
authors = ["Antoine Cezar <antoine.cezar@octobus.net>"]
edition = "2018"
[dependencies]
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45592 hg-core = { path = "../hg-core"}
Antoine Cezar
rhg: add a limited `rhg root` subcommand...
r45593 clap = "2.33.1"
Antoine Cezar
rhg: add rhg crate...
r45503