##// END OF EJS Templates
hg: improve 'Such branch %s does not exists' message
Mads Kiilerich -
r3554:189ce0d7 beta
parent child Browse files
Show More
@@ -457,11 +457,11 b' class MercurialRepository(BaseRepository'
457 end_pos = self.revisions.index(end_raw_id) if end else None
457 end_pos = self.revisions.index(end_raw_id) if end else None
458
458
459 if None not in [start, end] and start_pos > end_pos:
459 if None not in [start, end] and start_pos > end_pos:
460 raise RepositoryError("start revision '%s' cannot be "
460 raise RepositoryError("Start revision '%s' cannot be "
461 "after end revision '%s'" % (start, end))
461 "after end revision '%s'" % (start, end))
462
462
463 if branch_name and branch_name not in self.branches.keys():
463 if branch_name and branch_name not in self.branches.keys():
464 raise BranchDoesNotExistError('Such branch %s does not exists for'
464 raise BranchDoesNotExistError('Branch %s not found in'
465 ' this repository' % branch_name)
465 ' this repository' % branch_name)
466 if end_pos is not None:
466 if end_pos is not None:
467 end_pos += 1
467 end_pos += 1
General Comments 0
You need to be logged in to leave comments. Login now