~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to baz_import.py

  • Committer: Aaron Bentley
  • Date: 2005-11-03 23:51:42 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20051103235142-ee0902aa51ee99ac
Fixed baz-import with unregistered ancestors

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
 
231
231
    try:
232
232
        ancestors = version_ancestry(version)
233
 
        if len(ancestors) == 0 and not ancestors[0].archive.is_registered():
 
233
        if len(ancestors) > 0 and not ancestors[0].archive.is_registered():
234
234
            ancestors = ancestors[1:]
235
235
    except NoSuchVersion, e:
236
236
        raise UserError(e)