Commit ca77282e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent caf7783a
......@@ -741,9 +741,8 @@ class tFile:
# tWatch represents watch for one file setup on a tWatchLink.
class tWatch:
def __init__(w, zfile):
assert isinstance(zfile, ZBigFile)
w.foid = zfile._p_oid
def __init__(w, foid):
w.foid = foid
w.at = z64 # not None - always concrete
w.pinned = {} # blk -> rev
......@@ -1006,7 +1005,7 @@ def watch(twlink, zf, at, pinok=None): # -> tWatch
t = twlink.tdb
w = twlink._watching.get(zf)
if w is None:
w = twlink._watching[zf] = tWatch(zf)
w = twlink._watching[zf] = tWatch(zf._p_oid)
at_prev = None
else:
at_prev = w.at # we were previously watching zf @at_prev
......
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