qinit -c: add ^\.hg and ^\.mq to .hgignore
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 08 Feb 2008 18:07:55 -0200
changeset 6034 83633602e2c5
parent 6033 a1ebd5cd7e55
child 6048 cfb4a51da7d5
child 6087 12856a1742dc
qinit -c: add ^\.hg and ^\.mq to .hgignore
hgext/mq.py
tests/test-mq.out
--- 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')
--- a/tests/test-mq.out	Fri Feb 08 18:07:55 2008 -0200
+++ b/tests/test-mq.out	Fri Feb 08 18:07:55 2008 -0200
@@ -70,6 +70,8 @@
 A test.patch
 % qinit; qinit -c
   .hgignore:
+^\.hg
+^\.mq
 syntax: glob
 status
 guards