followup for bug 465521 - fixup section name in .treestate as python 2.6 doesn't allow 'default', r=Standard8
authorRobert Kaiser <kairo@kairo.at>
Mon, 01 Dec 2008 22:18:11 +0100
changeset 1287 4e0ccdb5b84f56c35c05b2c1664a7e206a7913c1
parent 1282 9e1e39f1e7e9bf5a743267503b5f0e7c0ac90341
child 1288 d1a28c00868bb607c031af23144d9294486f894b
push idunknown
push userunknown
push dateunknown
reviewersStandard8
bugs465521
followup for bug 465521 - fixup section name in .treestate as python 2.6 doesn't allow 'default', r=Standard8
client.py
--- a/client.py
+++ b/client.py
@@ -51,19 +51,19 @@ except ImportError:
 def check_call_noisy(cmd, *args, **kwargs):
     print "Executing command:", cmd
     check_call(cmd, *args, **kwargs)
 
 def repo_config():
     import ConfigParser
     config = ConfigParser.ConfigParser()
     config.read([TREE_STATE_FILE])
-    if not config.has_section('default'):
-      config.add_section('default')
-    config.set('default', 'src_update_version', '1')
+    if not config.has_section('treestate'):
+      config.add_section('treestate')
+    config.set('treestate', 'src_update_version', '1')
 
     # Write this file out
     f = open(TREE_STATE_FILE, 'w')
     try:
       config.write(f)
     finally:
       f.close()