Show More
@@ -363,15 +363,12 b' class NodeMapDocket(object):' | |||||
363 |
|
363 | |||
364 | def _rawdata_filepath(revlog, docket): |
|
364 | def _rawdata_filepath(revlog, docket): | |
365 | """The (vfs relative) nodemap's rawdata file for a given uid""" |
|
365 | """The (vfs relative) nodemap's rawdata file for a given uid""" | |
366 | if revlog.nodemap_file.endswith(b'.n.a'): |
|
366 | prefix = revlog.radix | |
367 | prefix = revlog.nodemap_file[:-4] |
|
|||
368 | else: |
|
|||
369 | prefix = revlog.nodemap_file[:-2] |
|
|||
370 | return b"%s-%s.nd" % (prefix, docket.uid) |
|
367 | return b"%s-%s.nd" % (prefix, docket.uid) | |
371 |
|
368 | |||
372 |
|
369 | |||
373 | def _other_rawdata_filepath(revlog, docket): |
|
370 | def _other_rawdata_filepath(revlog, docket): | |
374 |
prefix = revlog. |
|
371 | prefix = revlog.radix | |
375 | pattern = re.compile(br"(^|/)%s-[0-9a-f]+\.nd$" % prefix) |
|
372 | pattern = re.compile(br"(^|/)%s-[0-9a-f]+\.nd$" % prefix) | |
376 | new_file_path = _rawdata_filepath(revlog, docket) |
|
373 | new_file_path = _rawdata_filepath(revlog, docket) | |
377 | new_file_name = revlog.opener.basename(new_file_path) |
|
374 | new_file_name = revlog.opener.basename(new_file_path) |
General Comments 0
You need to be logged in to leave comments.
Login now