~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/history2weaves.py

  • Committer: Martin Pool
  • Date: 2005-09-22 06:04:03 UTC
  • Revision ID: mbp@sourcefrog.net-20050922060403-48111cfd9616c05d
- actually upgrade all of history

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        if not os.path.exists('.bzr/allow-upgrade'):
114
114
            raise Exception, "please create .bzr/allow-upgrade to indicate consent"
115
115
        self._backup_control_dir()
 
116
        note('starting upgrade')
 
117
        note('note: upgrade will be faster if all store files are ungzipped first')
116
118
        self.pb = ProgressBar()
117
119
        if not os.path.isdir('.bzr/weaves'):
118
120
            os.mkdir('.bzr/weaves')
124
126
        self.branch = Branch('.', relax_version_check=True)
125
127
        os.remove(self.branch.controlfilename('branch-format'))
126
128
        self._convert_working_inv()
127
 
        rev_history = self.branch.revision_history()[:300]
 
129
        rev_history = self.branch.revision_history()
128
130
        # to_read is a stack holding the revisions we still need to process;
129
131
        # appending to it adds new highest-priority revisions
130
132
        self.known_revisions = set(rev_history)