Traceback while trying to add directory under version control

Bug #230241 reported by Grigory Entin
This bug report is a duplicate of:  Bug #183831: bzr add <symlink> follows the link. Edit Remove
4
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned

Bug Description

I got traceback while trying to add pkg/dvc directory under version control (.bzr directory is in ~/.toast):

macpro% bzr add ~/.toast/pkg/dvc

bzr: ERROR: bzrlib.errors.PathNotChild: Path "/Users/eg/.toast/pkg/dvc" is not a child of path "/Volumes/Snark/Users/eg/.toast"

Traceback (most recent call last):
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr
    ret = run(*run_argv)
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/commands.py", line 504, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/builtins.py", line 387, in run
    no_recurse, action=action, save=not dry_run)
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 297, in smart_add
    rf = _FastPath(self.relpath(filepath))
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/workingtree.py", line 481, in relpath
    return osutils.relpath(self.basedir, path)
  File "/Users/eg/.toast/pkg/bzr/v1.4/1/root/lib/python2.5/site-packages/bzrlib/osutils.py", line 885, in relpath
    raise errors.PathNotChild(rp, base)
PathNotChild: Path "/Users/eg/.toast/pkg/dvc" is not a child of path "/Volumes/Snark/Users/eg/.toast"

bzr 1.4 on python 2.5.1 (darwin)
arguments: ['/Users/eg/.toast/armed/bin/bzr', 'add', '/Users/eg/.toast/pkg/dvc']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  cvsps_import /Users/eg/.bazaar/plugins/cvsps_import [unknown]
  launchpad /Users/eg/.toast/armed/lib/python2.5/site-packages/bzrlib/plugins/launchpad [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.

Revision history for this message
Grigory Entin (esrb) wrote :

cwd was out of that ~/.toast directory (particularly, in /usr/local/src/sqlite_docs_3_5_8); when I did "cd ~/.toast", "bzr add pkg/dvc" succeeded.

Revision history for this message
John A Meinel (jameinel) wrote :

It seems that somewhere is getting the real path to ~/.toast, namely /Volumes/Snark/Users/ rather than /Users/.toast.

I assume that /Users is a symlink to /Volumes/Snark/Users?

It suggests that we either need to not get the real path, or get the real path earlier.

My specific guess is that we take the path supplied, open the containing working tree. The WT then tracks the real path to its root, but then we try to add the paths using the supplied path again.

Revision history for this message
Grigory Entin (esrb) wrote :

Yes, /Users is a symlink to /Volumes/Snark/Users.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Seems to be a duplicate of bug 183831 - which itself may be a duplicate of (i.e. caused by) bug 124859.

Changed in bzr:
status: New → Invalid
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.