bzr add gives "no such file" when working in a view

Bug #921666 reported by Klemens Schindler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

Failure scenario:
  $ cd trunk
  $ cd Project
  $ bzr view Subdir
  Using 'my' view: Project/Subdir
  $ cd Subdir
  $ bzr add myfile
  bzr: ERROR: Specified file "version" is outside the current view: Project/Subdir

Problem:
myfile is located inside my Project/Subdir view, but bzr add says it's not.

OS is ubuntu linux 11.10
Bazaar is 2.5b2

Traceback:
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1128, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 676, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 698, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 721, in run
    tree, file_list = tree_files_for_add(file_list)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 106, in tree_files_for_add
    raise errors.FileOutsideView(filename, view_files)
  FileOutsideView: Specified file "test" is outside the current view: Project/Subdir

Revision history for this message
Martin Packman (gz) wrote :

Steps to reproduce:

bzr init branch
cd branch
bzr mkdir d
bzr view d
touch d/f
cd d
bzr add f

However adding d/f from the base directory works, so seems to be a bug with views and relative paths in add.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.