'bzr add *' fails when there is a branch inside another branch

Bug #131619 reported by Fábio
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

With bzr.dev, in an empty directory, this sequence of commands caused an exception.
If I try the bzr add without the "*", it doesn't happen.

rm -rf * .bzr
mkdir sub1
mkdir sub2
bzr init
bzr init sub1
bzr init sub2
bzr add *

bzr: ERROR: bzrlib.errors.PathNotChild: Path u'/home/fabio/temp2/sub2' is not a child of path u'/home/fabio/temp2/sub1'

Traceback (most recent call last):
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/commands.py", line 817, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/commands.py", line 779, in run_bzr
    ret = run(*run_argv)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/commands.py", line 477, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/builtins.py", line 383, in run
    no_recurse, action=action, save=not dry_run)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/mutabletree.py", line 50, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/mutabletree.py", line 314, in smart_add
    rf = _FastPath(self.relpath(filepath))
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/workingtree.py", line 449, in relpath
    return osutils.relpath(self.basedir, path)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/osutils.py", line 877, in relpath
    raise errors.PathNotChild(rp, base)
PathNotChild: Path u'/home/fabio/temp2/sub2' is not a child of path u'/home/fabio/temp2/sub1'

bzr 0.90.0dev0 on python 2.5.1.final.0 (linux2)
arguments: ['/home/fabio/bin/bzr', 'add', 'sub1', 'sub2']

** please send this report to <email address hidden>

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.