Show More
@@ -524,6 +524,10 b' class RevlogStoreEntry(BaseStoreEntry):' | |||||
524 | self.target_id = target_id |
|
524 | self.target_id = target_id | |
525 | self.is_revlog_main = is_revlog_main |
|
525 | self.is_revlog_main = is_revlog_main | |
526 |
|
526 | |||
|
527 | def main_file_path(self): | |||
|
528 | """unencoded path of the main revlog file""" | |||
|
529 | return self.unencoded_path | |||
|
530 | ||||
527 |
|
531 | |||
528 | @attr.s(slots=True) |
|
532 | @attr.s(slots=True) | |
529 | class StoreFile: |
|
533 | class StoreFile: |
@@ -90,7 +90,7 b' def _copyrevlog(tr, destrepo, oldrl, ent' | |||||
90 | util.copyfile(olddata, newdata) |
|
90 | util.copyfile(olddata, newdata) | |
91 |
|
91 | |||
92 | if entry.revlog_type & store.FILEFLAGS_FILELOG: |
|
92 | if entry.revlog_type & store.FILEFLAGS_FILELOG: | |
93 |
unencodedname = entry. |
|
93 | unencodedname = entry.main_file_path() | |
94 | destrepo.svfs.fncache.add(unencodedname) |
|
94 | destrepo.svfs.fncache.add(unencodedname) | |
95 | if copydata: |
|
95 | if copydata: | |
96 | destrepo.svfs.fncache.add(unencodedname[:-2] + b'.d') |
|
96 | destrepo.svfs.fncache.add(unencodedname[:-2] + b'.d') | |
@@ -132,7 +132,7 b' def _perform_clone(' | |||||
132 | ): |
|
132 | ): | |
133 | """returns the new revlog object created""" |
|
133 | """returns the new revlog object created""" | |
134 | newrl = None |
|
134 | newrl = None | |
135 |
revlog_path = entry. |
|
135 | revlog_path = entry.main_file_path() | |
136 | if matchrevlog(upgrade_op.revlogs_to_process, entry.revlog_type): |
|
136 | if matchrevlog(upgrade_op.revlogs_to_process, entry.revlog_type): | |
137 | ui.note( |
|
137 | ui.note( | |
138 | _(b'cloning %d revisions from %s\n') |
|
138 | _(b'cloning %d revisions from %s\n') |
General Comments 0
You need to be logged in to leave comments.
Login now