Rev 2487: Be optimistic about .bzr/branch/revision-history already being in utf8. in

John Arbash Meinel john at
Thu Mar 1 16:02:39 GMT 2007


revno: 2487
revision-id: john at
parent: john at
committer: John Arbash Meinel <john at>
branch nick: dirstate
timestamp: Thu 2007-03-01 10:01:33 -0600
  Be optimistic about .bzr/branch/revision-history already being in utf8.
  Decoding all 178k revisions for a mozilla tree takes about 3s / 15s for a 'bzr status'.
  Branch6 will do better by caching last_revision rather than the complete history.
  But for now, it looks a lot better if we just assume the revisions are utf8.
-------------- next part --------------
=== modified file 'bzrlib/'
--- a/bzrlib/	2007-02-17 02:33:45 +0000
+++ b/bzrlib/	2007-03-01 16:01:33 +0000
@@ -1292,8 +1292,7 @@
     def _gen_revision_history(self):
-        get_cached_utf8 = cache_utf8.get_cached_utf8
-        history = [get_cached_utf8(l.rstrip('\r\n')) for l in
+        history = [l.rstrip('\r\n') for l in
         return history

More information about the bazaar-commits mailing list