diff rhodecode/lib/vcs/backends/git/changeset.py @ 3575:ca7785fae354 beta

avoid %r markup of unicode strings in user facing messages Improves Revision u'b7f4...' does not exist for this repository
author Mads Kiilerich <madski@unity3d.com>
date Wed, 20 Mar 2013 15:32:23 +0100
parents c04d1d9b6193
children 63adb3d5233a
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/git/changeset.py	Thu Mar 21 11:17:01 2013 +0100
+++ b/rhodecode/lib/vcs/backends/git/changeset.py	Wed Mar 20 15:32:23 2013 +0100
@@ -153,7 +153,7 @@
                     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 @@
     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 @@
 
     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 @@
                     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