@@ -0,0 +1,34 @@
+=== modified file 'tracbzr/backend.py'
+--- tracbzr/backend.py 2007-09-22 17:48:32 +0000
++++ tracbzr/backend.py 2007-09-22 18:42:58 +0000
+@@ -154,7 +154,7 @@
+ """
+ if branch is None:
+ # No "safe" chars (make sure "/" is escaped)
+- return self._escape(revid)
++ return self._escape(revid, ':')
+ relpath = self.branch_path(branch)
+ try:
+ return '%s,%s' % (urllib.quote(relpath, ':'),
+@@ -170,8 +170,8 @@
+ return self._escape(revid, ':')
+
+ @staticmethod
+- def _escape(string):
+- return urllib.quote(string, '')
++ def _escape(string, safe=''):
++ return urllib.quote(string, safe)
+
+ @staticmethod
+ def _string_rev_revid(relpath, revid):
+@@ -1080,7 +1080,8 @@
+ neighbor_revid = bzr_repo.next_rev(revid)
+ neighbor = bzr_repo.get_changeset(neighbor_revid).revision
+ self.revision.timestamp = neighbor.timestamp
+- versioncontrol.Changeset.__init__(self, urllib.quote(revid),
++ versioncontrol.Changeset.__init__(self, bzr_repo.string_rev(
++ branch, revid),
+ '', '', self.revision.timestamp)
+ else:
+ self.revision = bzr_repo.get_branch_cache(branch).get_revision(revid)
+
|