Rev 3792: With -Dpack we should only mutter about chk_index if it actually exists. in http://bazaar.launchpad.net/%7Ebzr/bzr/brisbane-core

John Arbash Meinel john at arbash-meinel.com
Wed Dec 3 16:52:07 GMT 2008


At http://bazaar.launchpad.net/%7Ebzr/bzr/brisbane-core

------------------------------------------------------------
revno: 3792
revision-id: john at arbash-meinel.com-20081203164944-7zgn7egr7ouvn76s
parent: robertc at robertcollins.net-20081201043625-77tcktr1dfxc7w5l
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: brisbane-core
timestamp: Wed 2008-12-03 10:49:44 -0600
message:
  With -Dpack we should only mutter about chk_index if it actually exists.
-------------- next part --------------
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py	2008-11-20 19:41:26 +0000
+++ b/bzrlib/repofmt/pack_repo.py	2008-12-03 16:49:44 +0000
@@ -783,12 +783,12 @@
         # the items? How should that interact with stacked repos?
         if new_pack.chk_index is not None:
             self._copy_chks()
-        if 'pack' in debug.debug_flags:
-            mutter('%s: create_pack: chk content copied: %s%s %d items t+%6.3fs',
-                time.ctime(), self._pack_collection._upload_transport.base,
-                new_pack.random_name,
-                new_pack.chk_index.key_count(),
-                time.time() - new_pack.start_time)
+            if 'pack' in debug.debug_flags:
+                mutter('%s: create_pack: chk content copied: %s%s %d items t+%6.3fs',
+                    time.ctime(), self._pack_collection._upload_transport.base,
+                    new_pack.random_name,
+                    new_pack.chk_index.key_count(),
+                    time.time() - new_pack.start_time)
         self._check_references()
         if not self._use_pack(new_pack):
             new_pack.abort()



More information about the bazaar-commits mailing list