Show More
@@ -239,10 +239,10 b' def persist_nodemap(tr, revlog, pending=' | |||||
239 | fd.write(data) |
|
239 | fd.write(data) | |
240 | if feed_data: |
|
240 | if feed_data: | |
241 | if use_mmap: |
|
241 | if use_mmap: | |
242 | new_data = data |
|
|||
243 | else: |
|
|||
244 | fd.flush() |
|
242 | fd.flush() | |
245 | new_data = util.buffer(util.mmapread(fd, len(data))) |
|
243 | new_data = util.buffer(util.mmapread(fd, len(data))) | |
|
244 | else: | |||
|
245 | new_data = data | |||
246 | target_docket.data_length = len(data) |
|
246 | target_docket.data_length = len(data) | |
247 | target_docket.tip_rev = revlog.tiprev() |
|
247 | target_docket.tip_rev = revlog.tiprev() | |
248 | target_docket.tip_node = revlog.node(target_docket.tip_rev) |
|
248 | target_docket.tip_node = revlog.node(target_docket.tip_rev) |
General Comments 0
You need to be logged in to leave comments.
Login now