##// END OF EJS Templates
upgrade: avoid a traceback in case of unrecognized revlog...
marmoute -
r48460:aa229689 default
parent child Browse files
Show More
@@ -64,7 +64,12 b' def _revlogfrompath(repo, rl_type, path)'
64 )
64 )
65 else:
65 else:
66 # drop the extension and the `data/` prefix
66 # drop the extension and the `data/` prefix
67 path = path.rsplit(b'.', 1)[0].split(b'/', 1)[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 return filelog.filelog(repo.svfs, path)
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