~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/add.py

[merge] from robert and fix up tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    Returns the number of files added.
67
67
    """
68
68
    file_list = _prepare_file_list(file_list)
69
 
    b = Branch.open_containing(file_list[0])
 
69
    b = Branch.open_containing(file_list[0])[0]
70
70
    return smart_add_branch(b, file_list, recurse, reporter)
71
71
 
72
72