comparison 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
comparison
equal deleted inserted replaced
6033:a1ebd5cd7e55 6034:83633602e2c5
1510 r = q.init(repo, create=opts['create_repo']) 1510 r = q.init(repo, create=opts['create_repo'])
1511 q.save_dirty() 1511 q.save_dirty()
1512 if r: 1512 if r:
1513 if not os.path.exists(r.wjoin('.hgignore')): 1513 if not os.path.exists(r.wjoin('.hgignore')):
1514 fp = r.wopener('.hgignore', 'w') 1514 fp = r.wopener('.hgignore', 'w')
1515 fp.write('^\\.hg\n')
1516 fp.write('^\\.mq\n')
1515 fp.write('syntax: glob\n') 1517 fp.write('syntax: glob\n')
1516 fp.write('status\n') 1518 fp.write('status\n')
1517 fp.write('guards\n') 1519 fp.write('guards\n')
1518 fp.close() 1520 fp.close()
1519 if not os.path.exists(r.wjoin('series')): 1521 if not os.path.exists(r.wjoin('series')):