~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-22 07:25:50 UTC
  • Revision ID: mbp@sourcefrog.net-20050322072550-fefdb36d984b5ada
add command uses the path of the first named file

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
    
171
171
    Fails if the files are already added.
172
172
    """
173
 
    Branch('.').add(file_list, verbose=verbose)
 
173
    assert file_list
 
174
    b = Branch(file_list[0], find_root=True)
 
175
    b.add(file_list, verbose=verbose)
174
176
 
175
177
 
176
178
def cmd_inventory(revision=None):