changeset 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 a1ebd5cd7e55
children cfb4a51da7d5 12856a1742dc
files hgext/mq.py tests/test-mq.out
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
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')
--- 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