Show More
@@ -45,7 +45,12 b' def persisted_data(revlog):' | |||
|
45 | 45 | docket.data_unused = data_unused |
|
46 | 46 | |
|
47 | 47 | filename = _rawdata_filepath(revlog, docket) |
|
48 |
|
|
|
48 | data = revlog.opener.tryread(filename) | |
|
49 | if len(data) < data_length: | |
|
50 | return None | |
|
51 | elif len(data) > data_length: | |
|
52 | data = data[:data_length] | |
|
53 | return docket, data | |
|
49 | 54 | |
|
50 | 55 | |
|
51 | 56 | def setup_persistent_nodemap(tr, revlog): |
General Comments 0
You need to be logged in to leave comments.
Login now