tests/run-tests.py
branchstable
changeset 1265 ae952fb9707f
parent 1263 f31eefe0ab4c
child 1266 f412189fe8f8
equal deleted inserted replaced
1263:f31eefe0ab4c 1265:ae952fb9707f
   331             return name
   331             return name
   332     return None
   332     return None
   333 
   333 
   334 def createhgrc(path, options):
   334 def createhgrc(path, options):
   335     # create a fresh hgrc
   335     # create a fresh hgrc
   336     hgrc = open(path, 'w+')
   336     hgrc = open(path, 'w')
   337     hgrc.write('[ui]\n')
   337     hgrc.write('[ui]\n')
   338     hgrc.write('slash = True\n')
   338     hgrc.write('slash = True\n')
   339     hgrc.write('interactive = False\n')
   339     hgrc.write('interactive = False\n')
   340     hgrc.write('[defaults]\n')
   340     hgrc.write('[defaults]\n')
   341     hgrc.write('backout = -d "0 0"\n')
   341     hgrc.write('backout = -d "0 0"\n')