"bzr ignore /" crashes: IndexError: string index out of range

Bug #456036 reported by James Newell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Gordon Tyler

Bug Description

bzr ignore / src/www/teacher/
bzr: ERROR: exceptions.IndexError: string index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2424, in run
    if (name_pattern[0] == '/' or
IndexError: string index out of range

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'ignore', '/', 'src/www/teacher/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
*** 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.

Tags: easy ignore

Related branches

summary: - bzr crashes on ignore folder
+ "bzr ignore /" crashes
summary: - "bzr ignore /" crashes
+ "bzr ignore /" crashes: IndexError: string index out of range
Revision history for this message
Andrew Bennetts (spiv) wrote :

I can reproduce this with trunk:

bzr init /tmp/ignore-test
cd /tmp/ignore-test
bzr ignore / # causes traceback

It's probably a shallow bug.

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
tags: added: easy ignore
Revision history for this message
Andrew Bennetts (spiv) wrote :

Thanks to a patch from doxxx this is now fixed in lp:bzr. It should be included in the 2.1 release.

Changed in bzr:
assignee: nobody → Gordon Tyler (doxxx)
status: Confirmed → Fix Released
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 456036] Re: "bzr ignore /" crashes: IndexError: string index out of range

On Tue, 2009-11-17 at 04:05 +0000, Andrew Bennetts wrote:
> Thanks to a patch from doxxx this is now fixed in lp:bzr. It should be
> included in the 2.1 release.
>
> ** Changed in: bzr
> Status: Confirmed => Fix Released
>
> ** Changed in: bzr
> Assignee: (unassigned) => Gordon Tyler (doxxx)

Please remember to set the milestone when closing a bug, if its known.
This helps show our progress to folk coming along a little later, or who
are disconnected from the day to day.

-Rob

Changed in bzr:
milestone: none → 2.1.0b4
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.