Commit 5e41fd30 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a9f90ffa
...@@ -170,10 +170,10 @@ def test_wcfs(): ...@@ -170,10 +170,10 @@ def test_wcfs():
Z = _() Z = _()
Z.tidv = [] Z.tidv = []
def commit(): def commit():
print 'commit'
last._p_changed = 1 last._p_changed = 1
transaction.commit() transaction.commit()
tid = last._p_serial tid = last._p_serial
print 'commit -> %s' % h(tid)
Z.head = tid Z.head = tid
Z.tidv.append(tid) Z.tidv.append(tid)
return tid return tid
...@@ -185,9 +185,7 @@ def test_wcfs(): ...@@ -185,9 +185,7 @@ def test_wcfs():
def wcsync(): def wcsync():
while len(Z.wctidv) < len(Z.tidv): while len(Z.wctidv) < len(Z.tidv):
l = wc_zhead.readline() l = wc_zhead.readline()
print '\n\n\n' #print '> zhead read: %r' % l
print '> zhead read: %r' % l
print
l = l.rstrip('\n') l = l.rstrip('\n')
wctid = fromhex(l) wctid = fromhex(l)
i = len(Z.wctidv) i = len(Z.wctidv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment