diff options
author | Mads Kiilerich <madski@unity3d.com> | 2013-03-20 15:32:23 +0100 |
---|---|---|
committer | Mads Kiilerich <madski@unity3d.com> | 2013-03-20 15:32:23 +0100 |
commit | daab33c407bbebf30dee337ba1513daee43ae036 (patch) | |
tree | 4f84c54df8979cc1015bf57b488324bbc97f34a2 /rhodecode/lib/vcs/backends/git/changeset.py | |
parent | 97d3c298349740c3366bd2ef785632bd98cb758f (diff) |
avoid %r markup of unicode strings in user facing messages
Improves
Revision u'b7f4...' does not exist for this repository
--HG--
branch : beta
extra : transplant_source : By%A4/%D3%99%DB%F2%B6%7C1%0D%AFS%03%F7b%3F%06m
Diffstat (limited to 'rhodecode/lib/vcs/backends/git/changeset.py')
-rw-r--r-- | rhodecode/lib/vcs/backends/git/changeset.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rhodecode/lib/vcs/backends/git/changeset.py b/rhodecode/lib/vcs/backends/git/changeset.py index cf76ae5d..24fa2356 100644 --- a/rhodecode/lib/vcs/backends/git/changeset.py +++ b/rhodecode/lib/vcs/backends/git/changeset.py @@ -153,7 +153,7 @@ class GitChangeset(BaseChangeset): self._stat_modes[name] = stat if not path in self._paths: raise NodeDoesNotExistError("There is no file nor directory " - "at the given path %r at revision %r" + "at the given path '%s' at revision %s" % (path, self.short_id)) return self._paths[path] @@ -167,8 +167,8 @@ class GitChangeset(BaseChangeset): def _get_filectx(self, path): path = self._fix_path(path) if self._get_kind(path) != NodeKind.FILE: - raise ChangesetError("File does not exist for revision %r at " - " %r" % (self.raw_id, path)) + raise ChangesetError("File does not exist for revision %s at " + " '%s'" % (self.raw_id, path)) return path def _get_file_nodes(self): @@ -394,8 +394,8 @@ class GitChangeset(BaseChangeset): def get_nodes(self, path): if self._get_kind(path) != NodeKind.DIR: - raise ChangesetError("Directory does not exist for revision %r at " - " %r" % (self.revision, path)) + raise ChangesetError("Directory does not exist for revision %s at " + " '%s'" % (self.revision, path)) path = self._fix_path(path) id = self._get_id_for_path(path) tree = self.repository._repo[id] @@ -458,7 +458,7 @@ class GitChangeset(BaseChangeset): node._blob = obj else: raise NodeDoesNotExistError("There is no file nor directory " - "at the given path %r at revision %r" + "at the given path '%s' at revision %s" % (path, self.short_id)) # cache node self.nodes[path] = node |