bazaar internal error if adding file in a linked directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Breezy |
Triaged
|
Medium
|
Unassigned | ||
bzr (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Steps to reproduce:
# needed files:
$ mkdir testdir
$ touch testdir/one
$ mkdir test
$ cd test
$ ln -s ../testdir .
$ bzr init
$ bzr add testdir/one
added testdir
added testdir/one
# expected: warning that testdir/one is not added
$ bzr status
added:
testdir@
# try it once again and get this error:
$ bzr add testdir/one
added testdir/one
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
no_recurse, action=action, save=not dry_run)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
added.
File "/usr/lib/
_add_one(tree, inv, parent_ie, path, kind, action)
File "/usr/lib/
inv.add(entry)
File "/usr/lib/
if entry.name in parent.children:
AttributeError: children
bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'add', 'testdir/one']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
plugins:
bzrtools /usr/lib/
gtk /usr/lib/
launchpad /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Related branches
- Robert Collins (community): Needs Fixing
- John A Meinel: Pending requested
-
Diff: 145 lines (+91/-0)4 files modifiedbzrlib/builtins.py (+25/-0)
bzrlib/errors.py (+5/-0)
bzrlib/tests/blackbox/test_add.py (+55/-0)
bzrlib/tests/test_errors.py (+6/-0)
Changed in bzr: | |
status: | New → Confirmed |
Changed in bzr: | |
status: | New → In Progress |
Changed in bzr (Ubuntu): | |
assignee: | Declan McGrath (declanmg) → nobody |
Changed in bzr: | |
importance: | Undecided → Medium |
Changed in bzr (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
tags: | added: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | removed: check-for-breezy |
tags: | added: traceback |
I've had a look at fixing this bug and put the work on a branch of mine at https:/ /code.launchpad .net/~declanmg/ bzr/264275- fix
I'll look into reorganising the code when I get the chance (am new to bzr and new to python) and adding some tests. Any feedback/advice would be great.