##// END OF EJS Templates
backends: make HG repos throw same kind of CommitDoesNotExist errors like other backends.
marcink -
r1428:81fbc95e stable
parent child Browse files
Show More
@@ -445,7 +445,12 b' class MercurialRepository(BaseRepository'
445 if isinstance(commit_id, unicode):
445 if isinstance(commit_id, unicode):
446 commit_id = safe_str(commit_id)
446 commit_id = safe_str(commit_id)
447
447
448 try:
448 raw_id, idx = self._remote.lookup(commit_id, both=True)
449 raw_id, idx = self._remote.lookup(commit_id, both=True)
450 except CommitDoesNotExistError:
451 msg = "Commit %s does not exist for %s" % (
452 commit_id, self)
453 raise CommitDoesNotExistError(msg)
449
454
450 return MercurialCommit(self, raw_id, idx, pre_load=pre_load)
455 return MercurialCommit(self, raw_id, idx, pre_load=pre_load)
451
456
General Comments 0
You need to be logged in to leave comments. Login now