Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

wconfig: always write config files in local eoln style, backout 24a354d1895b

Changeset 3d4b9f518406

Parent eb59704f5410

by Steve Borho

Changes to 3 files · Browse files at 3d4b9f518406 Showing diff from parent eb59704f5410 Diff from another changeset...

 
902
903
904
905
 
906
907
908
 
902
903
904
 
905
906
907
908
@@ -902,7 +902,7 @@
  for fn in rcpath:   # Try to create a file from rcpath   try: - f = open(fn, 'wb') + f = open(fn, 'w')   f.write('# Generated by TortoiseHg setting dialog\n')   f.close()   break
 
1142
1143
1144
1145
 
1146
1147
1148
 
1142
1143
1144
 
1145
1146
1147
1148
@@ -1142,7 +1142,7 @@
  for fn in rcpath:   # Try to create a file from rcpath   try: - f = open(fn, 'wb') + f = open(fn, 'w')   f.write('# Generated by TortoiseHg\n')   f.close()   break
 
233
234
235
236
 
237
238
239
 
233
234
235
 
236
237
238
239
@@ -233,7 +233,7 @@
   def writefile(config, path):   """Write the given config obj to the specified file""" - f = util.atomictempfile(os.path.realpath(path)) + f = util.atomictempfile(os.path.realpath(path), 'w')   try:   config.write(f)   f.rename()