--- a/tests/test-check-code.t Wed Mar 29 09:54:34 2017 -0400
+++ b/tests/test-check-code.t Wed Mar 29 12:14:20 2017 -0700
@@ -57,3 +57,20 @@
... print('commands in debugcommands.py not sorted; first differing '
... 'command is %s; expected %s' % (commands[i], command))
... break
+
+Prevent adding new files in the root directory accidentally.
+
+ $ hg files 'glob:*'
+ .editorconfig
+ .hgignore
+ .hgsigs
+ .hgtags
+ CONTRIBUTING
+ CONTRIBUTORS
+ COPYING
+ Makefile
+ README
+ hg
+ hgeditor
+ hgweb.cgi
+ setup.py