~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Move add from Branch to WorkingTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
    takes_args = ['dir+']
228
228
 
229
229
    def run(self, dir_list):
230
 
        b = None
231
 
        
232
230
        for d in dir_list:
233
231
            os.mkdir(d)
234
232
            wt, dd = WorkingTree.open_containing(d)
235
 
            b = wt.branch
236
 
            b.add([dd])
 
233
            wt.add([dd])
237
234
            print 'added', d
238
235
 
239
236
 
1059
1056
            mutter('.bzrignore is already versioned')
1060
1057
        else:
1061
1058
            mutter('need to make new .bzrignore file versioned')
1062
 
            tree.branch.add(['.bzrignore'])
 
1059
            tree.add(['.bzrignore'])
1063
1060
 
1064
1061
 
1065
1062
class cmd_ignored(Command):