mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
4d6591aee7
Summary: It's a headache about how to deal with static files (help/, template/, default config), since we have 3 different ways of packing the Python code: normal (linux), embedded (Windows), and fbcode xar (linux). The latter two need workarounds to make `help/` work, and for the "embedded" case, It is currently broken. This diff moves user-facing `help/` files to a Python module to remove the need of special casing it in different ways. `helptext.py` was created via: import glob, os for path in glob.glob('help/*.txt'): if path.count('.') == 1: name = path.split('.')[0] name = os.path.basename(name) if '-' in name: name = 'globals()[%r]' % name print("%s = r'''%s'''\n\n" % (name, open(path, "rb").read())) os.unlink(path) The help text about named branches are removed to make `test-check-help.t` happy. Reviewed By: mitrandir77 Differential Revision: D15291676 fbshipit-source-id: 2320bd59369ef092d8c06b8539e401799a0467ef |
||
---|---|---|
.. | ||
internals | ||
subversion | ||
hg-ssh.8.txt | ||
hg.1.txt | ||
hgrc.5.txt |