# HG changeset patch # User Mads Kiilerich # Date 2013-03-12 13:50:06 # Node ID 189ce0d7b7c6f122a011c5feb0233198a5a75f61 # Parent 72c8917108ee7f95dba010d13f49b27112f9c0c2 hg: improve 'Such branch %s does not exists' message diff --git a/rhodecode/lib/vcs/backends/hg/repository.py b/rhodecode/lib/vcs/backends/hg/repository.py --- a/rhodecode/lib/vcs/backends/hg/repository.py +++ b/rhodecode/lib/vcs/backends/hg/repository.py @@ -457,11 +457,11 @@ class MercurialRepository(BaseRepository end_pos = self.revisions.index(end_raw_id) if end else None if None not in [start, end] and start_pos > end_pos: - raise RepositoryError("start revision '%s' cannot be " + raise RepositoryError("Start revision '%s' cannot be " "after end revision '%s'" % (start, end)) if branch_name and branch_name not in self.branches.keys(): - raise BranchDoesNotExistError('Such branch %s does not exists for' + raise BranchDoesNotExistError('Branch %s not found in' ' this repository' % branch_name) if end_pos is not None: end_pos += 1