/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Parth Malwankar
  • Date: 2010-02-17 09:32:47 UTC
  • mto: (5070.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5071.
  • Revision ID: parth.malwankar@gmail.com-20100217093247-pxew43a4ip5x6yqz
fixed mkdir and added test case for unversioned dir within branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
684
684
        for d in dir_list:
685
685
            wt, dd = WorkingTree.open_containing(d)
686
686
            base = os.path.dirname(dd)
687
 
            wt.add([base])
688
 
            os.mkdir(d)
689
 
            wt.add([dd])
690
 
            self.outf.write('added %s\n' % d)
 
687
            id = wt.path2id(base)
 
688
            if id != None:
 
689
                os.mkdir(d)
 
690
                wt.add([dd])
 
691
                self.outf.write('added %s\n' % d)
 
692
            else:
 
693
                raise errors.NotVersionedError(path=base)
691
694
 
692
695
 
693
696
class cmd_relpath(Command):