Search
j0ke.net Open Build Service
>
Projects
>
devel
:
python
>
trac-bazaar-plugin
> trac-bazaar-escape.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File trac-bazaar-escape.patch of Package trac-bazaar-plugin (Revision 2)
Currently displaying revision
2
,
show latest
=== 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)