Comment 0 for bug 183831

Revision history for this message
tebeka (miki-tebeka) wrote : Internal error with soft link

In my .www directory which is versioned, I've created a soft link to another directory (../work/bootcamp).
../work is versioned under another bazaar tree.

When trying to add the soft link, the following happens:

mtebeka@bugs:.www - 10:09 $ ln -s ../work/bootcamp bootcamp
mtebeka@bugs:.www - 10:09 $ bzr add bootcamp
bzr: ERROR: bzrlib.errors.PathNotChild: Path "/home/mtebeka/.www/bootcamp" is not a child of path "/home/mtebeka/work/bootcamp"

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 806, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 762, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 384, in run
    no_recurse, action=action, save=not dry_run)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 51, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 294, in smart_add
    rf = _FastPath(self.relpath(filepath))
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 477, in relpath
    return osutils.relpath(self.basedir, path)
  File "/usr/lib/python2.5/site-packages/bzrlib/osutils.py", line 907, in relpath
    raise errors.PathNotChild(rp, base)
PathNotChild: Path "/home/mtebeka/.www/bootcamp" is not a child of path "/home/mtebeka/work/bootcamp"

bzr 1.1.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'add', 'bootcamp']
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_US'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [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.
mtebeka@bugs:.www - 10:10 $ ls -lah bootcamp
lrwxrwxrwx 1 mtebeka mtebeka 16 2008-01-17 10:09 bootcamp -> ../work/bootcamp
mtebeka@bugs:.www - 10:10 $