Show More
@@ -64,7 +64,12 b' def _revlogfrompath(repo, rl_type, path)' | |||
|
64 | 64 | ) |
|
65 | 65 | else: |
|
66 | 66 | # drop the extension and the `data/` prefix |
|
67 |
path = path.rsplit(b'.', 1)[0].split(b'/', 1) |
|
|
67 | path_part = path.rsplit(b'.', 1)[0].split(b'/', 1) | |
|
68 | if len(path_part) < 2: | |
|
69 | msg = _('cannot recognize revlog from filename: %s') | |
|
70 | msg %= path | |
|
71 | raise error.Abort(msg) | |
|
72 | path = path_part[1] | |
|
68 | 73 | return filelog.filelog(repo.svfs, path) |
|
69 | 74 | |
|
70 | 75 |
General Comments 0
You need to be logged in to leave comments.
Login now