Rev 3805: obsolete the .cix index along with the rest. in http://bzr.arbash-meinel.com/branches/bzr/brisbane/chk_map

John Arbash Meinel john at arbash-meinel.com
Wed Dec 3 03:56:55 GMT 2008


At http://bzr.arbash-meinel.com/branches/bzr/brisbane/chk_map

------------------------------------------------------------
revno: 3805
revision-id: john at arbash-meinel.com-20081203035643-0x4npc4s8mh8nqlh
parent: john at arbash-meinel.com-20081202235625-h5fo44xy2hxeopo2
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: chk_map
timestamp: Tue 2008-12-02 21:56:43 -0600
message:
  obsolete the .cix index along with the rest.
-------------- 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 03:56:43 +0000
@@ -1530,7 +1530,10 @@
             # TODO: Probably needs to know all possible indices for this pack
             # - or maybe list the directory and move all indices matching this
             # name whether we recognize it or not?
-            for suffix in ('.iix', '.six', '.tix', '.rix'):
+            suffixes = ['.iix', '.six', '.tix', '.rix']
+            if self.chk_index is not None:
+                suffixes.append('.cix')
+            for suffix in suffixes:
                 self._index_transport.rename(pack.name + suffix,
                     '../obsolete_packs/' + pack.name + suffix)
 



More information about the bazaar-commits mailing list