Show More
@@ -92,7 +92,8 b' def _persist_nodemap(tr, revlog):' | |||||
92 | datafile = _rawdata_filepath(revlog, target_docket) |
|
92 | datafile = _rawdata_filepath(revlog, target_docket) | |
93 | # EXP-TODO: if this is a cache, this should use a cache vfs, not a |
|
93 | # EXP-TODO: if this is a cache, this should use a cache vfs, not a | |
94 | # store vfs |
|
94 | # store vfs | |
95 |
with revlog.opener(datafile, b' |
|
95 | with revlog.opener(datafile, b'r+') as fd: | |
|
96 | fd.seek(target_docket.data_length) | |||
96 | fd.write(data) |
|
97 | fd.write(data) | |
97 | target_docket.data_length += len(data) |
|
98 | target_docket.data_length += len(data) | |
98 | target_docket.data_unused += data_changed_count |
|
99 | target_docket.data_unused += data_changed_count |
General Comments 0
You need to be logged in to leave comments.
Login now