~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-06-23 23:18:07 UTC
  • mfrom: (4470.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090623231807-lxt38nkudno0040b
(jam) When resuming, resume indices before pack files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
313
313
 
314
314
    def finish(self):
315
315
        self._check_references()
316
 
        new_name = '../packs/' + self.file_name()
317
 
        self.upload_transport.rename(self.file_name(), new_name)
318
316
        index_types = ['revision', 'inventory', 'text', 'signature']
319
317
        if self.chk_index is not None:
320
318
            index_types.append('chk')
323
321
            new_name = '../indices/' + old_name
324
322
            self.upload_transport.rename(old_name, new_name)
325
323
            self._replace_index_with_readonly(index_type)
 
324
        new_name = '../packs/' + self.file_name()
 
325
        self.upload_transport.rename(self.file_name(), new_name)
326
326
        self._state = 'finished'
327
327
 
328
328
    def _get_external_refs(self, index):