Skip to content
Snippets Groups Projects
Commit 2de12443 authored by kiilerix's avatar kiilerix
Browse files

tests: lock before creating transaction in test-filelog

parent 7eca9db6
No related merge requests found
......@@ -17,5 +17,5 @@
else:
meta = {}
t = repo.transaction('commit')
lock = t = None
try:
......@@ -21,4 +21,6 @@
try:
lock = repo.lock()
t = repo.transaction('commit')
node = fl.add(text, meta, t, 0, nullid, nullid)
return node
finally:
......@@ -22,7 +24,10 @@
node = fl.add(text, meta, t, 0, nullid, nullid)
return node
finally:
t.close()
if t:
t.close()
if lock:
lock.release()
def error(text):
print 'ERROR: ' + text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment