~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Andres Salomon
  • Date: 2005-10-20 19:48:56 UTC
  • mto: This revision was merged to the branch mainline in revision 1486.
  • Revision ID: dilinger@athenacr.com-20051020194856-86687868337effed
Handle the case where revision_history() returns an empty list during
an upgrade.  Not a huge problem, since there's really nothing to convert,
but it's nice to not spew errors anyways.

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