~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2007-02-09 17:16:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2294.
  • Revision ID: john@arbash-meinel.com-20070209171626-x3gg6hgainzs91sj
Make sure Branch.revision_history() also works in utf-8 revision ids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1153
1153
        if history is not None:
1154
1154
            # mutter("cache hit for revision-history in %s", self)
1155
1155
            return list(history)
1156
 
        decode_utf8 = cache_utf8.decode
1157
 
        history = [decode_utf8(l.rstrip('\r\n')) for l in
 
1156
        get_cached_utf8 = cache_utf8.get_cached_utf8
 
1157
        history = [get_cached_utf8(l.rstrip('\r\n')) for l in
1158
1158
                self.control_files.get('revision-history').readlines()]
1159
1159
        transaction.map.add_revision_history(history)
1160
1160
        # this call is disabled because revision_history is