Mercurial > kallithea
comparison rhodecode/lib/vcs/backends/hg/repository.py @ 3574:000653f7cdf9 beta
avoid displaying repr of internal classes in user facing messages
The context of the message will tell where the problem was and there is no reason to show
... does not exist for this repository <MercurialRepository at /home/marcink/repos/rhodecode>
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 21 Mar 2013 11:17:01 +0100 |
parents | ff0646d1a1b4 |
children | ca7785fae354 |
comparison
equal
deleted
inserted
replaced
3573:881ae12b3c7d | 3574:000653f7cdf9 |
---|---|
403 | 403 |
404 try: | 404 try: |
405 revision = hex(self._repo.lookup(revision)) | 405 revision = hex(self._repo.lookup(revision)) |
406 except (IndexError, ValueError, RepoLookupError, TypeError): | 406 except (IndexError, ValueError, RepoLookupError, TypeError): |
407 raise ChangesetDoesNotExistError("Revision %r does not " | 407 raise ChangesetDoesNotExistError("Revision %r does not " |
408 "exist for this repository %s" \ | 408 "exist for this repository" |
409 % (revision, self)) | 409 % (revision)) |
410 return revision | 410 return revision |
411 | 411 |
412 def _get_archives(self, archive_name='tip'): | 412 def _get_archives(self, archive_name='tip'): |
413 allowed = self.baseui.configlist("web", "allow_archive", | 413 allowed = self.baseui.configlist("web", "allow_archive", |
414 untrusted=True) | 414 untrusted=True) |