Error when changeset to pull but no changesets to rebase

Bug #237049 reported by Russel Winder
2
Affects Status Importance Assigned to Milestone
bzr-rewrite
Fix Released
Undecided
Jelmer Vernooij
bzr-rebase (Ubuntu)
Fix Released
Undecided
Jelmer Vernooij

Bug Description

Where a parent-branch has changeset to be pulled, but the branch has no changesets that will be rebased then an error ensues.

|> bzr rebase
Rebasing on svn+https://svn.codehaus.org/groovy/trunk/groovy/groovy-core
bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 807, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/users/russel/.bazaar/plugins/rebase/__init__.py", line 198, in run
    start_revid = revhistory[revhistory.index(common_revid)+1]
IndexError: list index out of range

bzr 1.5 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'rebase']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [0.92.0dev0]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0.0dev0]
  rebase /home/users/russel/.bazaar/plugins/rebase [0.4.0dev0]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.10]
  xmloutput /home/users/russel/.bazaar/plugins/xmloutput [0.4.4]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Jelmer Vernooij (jelmer)
Changed in bzr-rebase:
assignee: nobody → jelmer
status: New → Fix Committed
assignee: nobody → jelmer
status: New → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-rebase:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr-rebase:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.