diff hgext/mq.py @ 6034:83633602e2c5

qinit -c: add ^\.hg and ^\.mq to .hgignore
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 08 Feb 2008 18:07:55 -0200
parents cee68264ed92
children cfb4a51da7d5
line wrap: on
line diff
--- a/hgext/mq.py	Fri Feb 08 18:07:55 2008 -0200
+++ b/hgext/mq.py	Fri Feb 08 18:07:55 2008 -0200
@@ -1512,6 +1512,8 @@
     if r:
         if not os.path.exists(r.wjoin('.hgignore')):
             fp = r.wopener('.hgignore', 'w')
+            fp.write('^\\.hg\n')
+            fp.write('^\\.mq\n')
             fp.write('syntax: glob\n')
             fp.write('status\n')
             fp.write('guards\n')