~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/add.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-25 03:18:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050325031821-84a7c8106026556f
smart_add: no warning for already-added files

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    For the specific behaviour see the help for cmd_add().
29
29
    """
30
30
    assert file_list
31
 
    assert not isinstance(file_list, types.StringTypes)
 
31
    assert not isinstance(file_list, basestring)
32
32
    b = bzrlib.branch.Branch(file_list[0], find_root=True)
33
33
    inv = b.read_working_inventory()
34
34
    tree = b.working_tree()
53
53
        versioned = (inv.path2id(rf) != None)
54
54
 
55
55
        if versioned:
56
 
            bzrlib.warning("%r is already versioned" % f)
 
56
            mutter("%r is already versioned" % f)
57
57
        else:
58
58
            file_id = bzrlib.branch.gen_file_id(rf)
59
59
            inv.add_path(rf, kind=kind, file_id=file_id)