[PATCH 1 of 4] import-checker: allow symbol imports from hgweb.common and .request
Yuya Nishihara
yuya at tcha.org
Wed Nov 18 15:44:23 UTC 2015
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1446353721 -32400
# Sun Nov 01 13:55:21 2015 +0900
# Node ID d66415991a1f94da2f7f1e24793746a48deb3df6
# Parent a21e63ed613bc956c88c2832fce1968550ccf834
import-checker: allow symbol imports from hgweb.common and .request
This seems the convention of hgweb.
diff --git a/contrib/import-checker.py b/contrib/import-checker.py
--- a/contrib/import-checker.py
+++ b/contrib/import-checker.py
@@ -14,6 +14,8 @@ import zlib
# Whitelist of modules that symbols can be directly imported from.
allowsymbolimports = (
'__future__',
+ 'mercurial.hgweb.common',
+ 'mercurial.hgweb.request',
'mercurial.i18n',
'mercurial.node',
)
More information about the Mercurial-devel
mailing list