sapling/i18n
Jun Wu 9dc21f8d0b codemod: import from the edenscm package
Summary:
D13853115 adds `edenscm/` to `sys.path` and code still uses `import mercurial`.
That has nasty problems if both `import mercurial` and
`import edenscm.mercurial` are used, because Python would think `mercurial.foo`
and `edenscm.mercurial.foo` are different modules so code like
`try: ... except mercurial.error.Foo: ...`, or `isinstance(x, mercurial.foo.Bar)`
would fail to handle the `edenscm.mercurial` version. There are also some
module-level states (ex. `extensions._extensions`) that would cause trouble if
they have multiple versions in a single process.

Change imports to use the `edenscm` so ideally the `mercurial` is no longer
imported at all. Add checks in extensions.py to catch unexpected extensions
importing modules from the old (wrong) locations when running tests.

Reviewed By: phillco

Differential Revision: D13868981

fbshipit-source-id: f4e2513766957fd81d85407994f7521a08e4de48
2019-01-29 17:25:32 -08:00
..
check-translation.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
da.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
de.po help: improve some help messages 2018-10-15 09:37:19 -07:00
el.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
fr.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
hggettext codemod: import from the edenscm package 2019-01-29 17:25:32 -08:00
it.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
ja.po commands: be more uniform in an "hg update" error message 2017-10-23 22:45:24 +02:00
polib.LICENSE i18n: import polib 0.5.2 (rev b0ab301cfdcc) 2010-06-17 20:10:34 -03:00
polib.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
posplit py3: make i18n/posplit use print_function 2016-05-13 03:09:30 +05:30
pt_BR.po i18n-pt_BR: synchronized with f1d5a55d6a57 2017-11-21 13:50:25 -02:00
ro.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
ru.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
sv.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
zh_CN.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
zh_TW.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00