misc: replace domain of mercurial-devel ML address by mercurial-scm.org stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sat, 11 Feb 2017 00:23:55 +0900
branchstable
changeset 35779 22a4f664c1a5244ea7c40eefce60effc4382ac5b
parent 35778 4acf569facef365c0c8a42ebf717f7b81f580066
child 35796 75149f84eac79994b99e159cda8d8f1bec75b5a2
push id460
push usergszorc@mozilla.com
push dateThu, 16 Feb 2017 05:23:57 +0000
misc: replace domain of mercurial-devel ML address by mercurial-scm.org This patch also adds new check-code.py pattern to detect invalid usage of "mercurial-devel@selenic.com".
Makefile
contrib/check-code.py
--- a/Makefile
+++ b/Makefile
@@ -136,17 +136,17 @@ i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n
         # All strings marked for translation in Mercurial contain
         # ASCII characters only. But some files contain string
         # literals like this '\037\213'. xgettext thinks it has to
         # parse them even though they are not marked for translation.
         # Extracting with an explicit encoding of ISO-8859-1 will make
         # xgettext "parse" and ignore them.
 	echo $(PYFILES) | xargs \
 	  xgettext --package-name "Mercurial" \
-	  --msgid-bugs-address "<mercurial-devel@selenic.com>" \
+	  --msgid-bugs-address "<mercurial-devel@mercurial-scm.org>" \
 	  --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \
 	  --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
 	  -d hg -p i18n -o hg.pot.tmp
 	$(PYTHON) i18n/posplit i18n/hg.pot.tmp
         # The target file is not created before the last step. So it never is in
         # an intermediate state.
 	mv -f i18n/hg.pot.tmp i18n/hg.pot
 
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -449,16 +449,18 @@ webtemplatepats = [
 allfilesfilters = []
 
 allfilespats = [
   [
     (r'(http|https)://[a-zA-Z0-9./]*selenic.com/',
      'use mercurial-scm.org domain URL'),
     (r'mercurial@selenic\.com',
      'use mercurial-scm.org domain for mercurial ML address'),
+    (r'mercurial-devel@selenic\.com',
+     'use mercurial-scm.org domain for mercurial-devel ML address'),
   ],
   # warnings
   [],
 ]
 
 py3pats = [
   [
     (r'os\.environ', "use encoding.environ instead (py3)"),