sapling/eden/scm/contrib
Adam Simpkins 0bc787c4c0 remove the mercurial.policy module
Summary:
This module previously used to handle deciding how a particular module should
be imported if it had multiple versions (e.g., pure Python or native).
However, as of D18819680 it was changed to always import the native C version.

Lets go ahead and remove it entirely now.  Using `policy.importmod` simply
makes it harder for type checkers to figure out the actual module that will be
used.

The only functionality that `policy.importmod()` still provided was verifying
that the module contained a "version" field that looked like what was
expected.  In practice these version numbers are not bumped often, so this
doesn't really seem to provide much value in checking that we imported the
correct version that we expected to be shipped with this release.

Reviewed By: xavierd

Differential Revision: D19958227

fbshipit-source-id: 05f1d027d0a41cf99c4aa93cb84a51e830305077
2020-02-21 13:54:19 -08:00
..
chg py3: chg: fix compatibility 2020-02-03 18:26:57 -08:00
hgsh Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
python2-winbuild Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
vim Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
whochanges Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
xdiff use absolute includes to the third-party xdiff code 2020-02-19 13:05:06 -08:00
bdiff-torture.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
check-code.py remove the mercurial.policy module 2020-02-21 13:54:19 -08:00
check-config.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
check-py3-compat.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
clang-format-blacklist Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
dirstatenonnormalcheck.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
editmergeps.bat Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
editmergeps.ps1 Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
fix-code.py testing utilities py3 compatibility 2020-01-29 17:07:32 -08:00
git-sl py3 iteritems -> pycompat.iteritems 2020-02-04 15:29:39 -08:00
hg-ssh Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
hg-test-mode.el Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
mercurial.el Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
perf.py change maxint -> maxsize 2020-01-28 10:37:53 -08:00
python-hook-examples.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
scm-prompt.sh bookmarks: move 'bookmarks' state to storevfs 2019-11-27 11:37:43 -08:00
synthrepo.py py3 iteritems -> pycompat.iteritems 2020-02-04 15:29:39 -08:00
traceprof.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
zsh_completion Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00