[PATCH 7 of 8] import-checker: allow symbol imports from hgweb.common and .request
Laurent Charignon
lcharignon at fb.com
Thu Nov 19 13:46:25 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 111782cc7592732fc911cf23dc730d0399f6a106
# Parent 1061df69f49fd43912633816e67601024d98d0ce
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 @@
# 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