~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Modified mkdir functionality, to handle multiple nested trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
        
238
238
        for d in dir_list:
239
239
            os.mkdir(d)
240
 
            if not b:
241
 
                b = Branch.open_containing(d)[0]
242
 
                tree = b.working_tree()
243
 
            dd = tree.relpath(d)
 
240
            b, dd = Branch.open_containing(d)
244
241
            b.add([dd])
245
242
            print 'added', dd
246
243