~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Robert Collins
  • Date: 2005-10-24 13:59:18 UTC
  • mfrom: (1185.20.1)
  • Revision ID: robertc@robertcollins.net-20051024135918-024629d7ee347b5c
fix upgrading of trees with no commits

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
        # to_read is a stack holding the revisions we still need to process;
161
161
        # appending to it adds new highest-priority revisions
162
162
        self.known_revisions = set(rev_history)
163
 
        self.to_read = [rev_history[-1]]
 
163
        self.to_read = rev_history[-1:]
164
164
        while self.to_read:
165
165
            rev_id = self.to_read.pop()
166
166
            if (rev_id not in self.revisions