~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: John Arbash Meinel
  • Date: 2007-02-18 00:22:24 UTC
  • mto: This revision was merged to the branch mainline in revision 2298.
  • Revision ID: john@arbash-meinel.com-20070218002224-nfsw9ubivr178ahn
Switch all apis over to utf8 file ids. All tests pass

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
                try:
545
545
                    revision_id = unescape_revid_cache[revision_id]
546
546
                except KeyError:
547
 
                    # TODO: jam 20070217 For now, _unescape_xml return Unicode
548
 
                    #       revision ids, once we make file_ids utf8, then it
549
 
                    #       will return utf8 strings instead, and we can get
550
 
                    #       rid of this.
551
 
                    unescaped = osutils.safe_revision_id(unescape(revision_id))
 
547
                    unescaped = unescape(revision_id)
552
548
                    unescape_revid_cache[revision_id] = unescaped
553
549
                    revision_id = unescaped
554
550
 
2091
2087
    except KeyError:
2092
2088
        if not code.startswith('#'):
2093
2089
            raise
2094
 
        return unichr(int(code[1:]))
 
2090
        return unichr(int(code[1:])).encode('utf8')
2095
2091
 
2096
2092
 
2097
2093
_unescape_re = None