Commit 32187703 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent af0a64cb
......@@ -605,7 +605,8 @@ class tFile:
# tWatch represents watch for one file setup on a tWatchLink.
class tWatch:
def __init__(w):
def __init__(w, zfile):
w.foid = zfile._p_oid
w.at = z64 # not None - always concrete
w.pinned = {} # blk -> rev
......@@ -884,7 +885,7 @@ def watch(twlink, zf, at, pinok=None): # XXX -> ?
t = twlink.tdb
w = twlink._watching.get(zf)
if w is None:
w = twlink._watching[zf] = tWatch()
w = twlink._watching[zf] = tWatch(zf)
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