Removing default .anjuta folder crashes Bzr

Bug #272648 reported by William Fagan
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Vincent Ladeuil

Bug Description

So I am having a hard time tracking down a reason why this happening so I don't know if it is a duplicate or not.

Basically when you create a new project in Anjuta it creates a .anjuta directory in your project folder. After adding that folder to bzr it crashes.

Here is the steps and the traceback.

Create a new Anjuta project to some directory.
Go to that directory.
bzr init
bzr add
bzr commit -m " "
bzr remove .anjuta

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, 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/builtins.py", line 1109, in run
    force=file_deletion_strategy=='force')
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 1879, in remove
    recurse_directory_to_add_files(filename)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 1862, in recurse_directory_to_add_files
    self.walkdirs(directory):
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 2323, in walkdirs
    if cur_disk_dir_content[bzrdir_loc][0] == '.bzr':
IndexError: list index out of range

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'remove', '.anjuta']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  xmloutput /home/will/.bazaar/plugins/xmloutput [0.5.0]
*** 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.

I can remove other files/folders. There seems to be something about that folder that is hosing things.

Also I am running Anjuta trunk so I hope this is reproducible on Anjuta stable.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 272648] [NEW] Removing default .anjuta folder crashes Bzr

Could you please attach to this bug a tarball of the directory just
before you run 'bzr remove'?

--
Martin <http://launchpad.net/~mbp/>

Revision history for this message
William Fagan (libwilliam-deactivatedaccount) wrote :

Here is a tarball of a base Anjuta project from the new project wizard.

Only things I have done are...
Create project.
Change to project directory.
bzr init
bzr add

Now at this point you can rm other files no problem (bzr rm stamp-h1)
Doing (bzr rm .anjuta/ crashes through)

I am runing bzr 1.6.1
Anjuta SVN (hopefully it will still be reproducible with whatever version you have installed)

Martin Pool (mbp)
Changed in bzr:
status: New → Incomplete
status: Incomplete → New
Revision history for this message
Vincent Ladeuil (vila) wrote :

Reproduced with the attached script

Changed in bzr:
assignee: nobody → vila
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Vincent Ladeuil (vila) wrote :

Note that using DIR=.zanjuta in the attached script doesn't exhibit the bug.

Vincent Ladeuil (vila)
Changed in bzr:
status: Confirmed → In Progress
Revision history for this message
Vincent Ladeuil (vila) wrote :

Trivial fix available in associated branch

Changed in bzr:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 1.8
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.