~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:31:10 UTC
  • Revision ID: mbp@sourcefrog.net-20050325033109-6161b7734add0329
special handling of root directory for recursive add

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
            
53
53
        versioned = (inv.path2id(rf) != None)
54
54
 
55
 
        if versioned:
 
55
        if rf == '':
 
56
            mutter("branch root doesn't need to be added")
 
57
        elif versioned:
56
58
            mutter("%r is already versioned" % f)
57
59
        else:
58
60
            file_id = bzrlib.branch.gen_file_id(rf)