/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Ian Clatworthy
  • Date: 2009-03-18 20:01:05 UTC
  • mto: (4178.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4179.
  • Revision ID: ian.clatworthy@canonical.com-20090318200105-bd4wt98cbe89uvuf
Fix add in trees supports views

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        tree = WorkingTree.open_containing(file_list[0])[0]
84
84
        if tree.supports_views():
85
85
            view_files = tree.views.lookup_view()
86
 
            for filename in file_list:
87
 
                if not osutils.is_inside_any(view_files, filename):
88
 
                    raise errors.FileOutsideView(filename, view_files)
 
86
            if view_files:
 
87
                for filename in file_list:
 
88
                    if not osutils.is_inside_any(view_files, filename):
 
89
                        raise errors.FileOutsideView(filename, view_files)
89
90
    else:
90
91
        tree = WorkingTree.open_containing(u'.')[0]
91
92
        if tree.supports_views():