devtools/__init__.py
branchstable
changeset 8463 a964c40adbe3
parent 8306 4da49700b06a
child 8543 b7c9443d8625
--- a/devtools/__init__.py	Tue Jul 10 10:33:19 2012 +0200
+++ b/devtools/__init__.py	Tue Jul 10 15:07:52 2012 +0200
@@ -168,7 +168,7 @@
     def load_configuration(self):
         super(TestServerConfiguration, self).load_configuration()
         # no undo support in tests
-        self.global_set_option('undo-support', '')
+        self.global_set_option('undo-enabled', 'n')
 
     def main_config_file(self):
         """return instance's control configuration file"""
@@ -480,8 +480,8 @@
             session = repo._sessions[cnx.sessionid]
             session.set_cnxset()
             _commit = session.commit
-            def keep_cnxset_commit():
-                _commit(free_cnxset=False)
+            def keep_cnxset_commit(free_cnxset=False):
+                _commit(free_cnxset=free_cnxset)
             session.commit = keep_cnxset_commit
             pre_setup_func(session, self.config)
             session.commit()