tests/test-check-code.t
changeset 31726 bdb72dd3957e
parent 31724 f1e0446e804c
child 31786 0e4f70f63aaa
--- 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