--- 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