[BUG] bzr mkdir subdir fails to add newly created directory

Alexander Belchenko bialix at ukr.net
Fri Nov 11 11:24:22 GMT 2005


Win32: when I trying to make dir via 'bzr mkdir' command in subdirectory 
(not in the root directory of tree) then directory successfully created 
but during add bzr fails:

D:\user\python\bzr\test\dir>bzr mkdir subdir
bzr: ERROR: cannot add: not a regular file, symlink or directory: subdir
   command: 'C:\\Python24\\Scripts\\bzr' 'mkdir' 'subdir'
       pwd: u'D:\\user\\python\\bzr\\test\\dir'
     error: bzrlib.errors.BzrError
   at C:\Python24\lib\site-packages\bzrlib\branch.py line 615, in add()
   see "C:\.bzr.log" for debug information


Here sequence of commands to reproduce this:

-----------------------------------------------------------------------
D:\user\python\bzr\test>bzr init


D:\user\python\bzr\test>bzr mkdir dir
D:\user\python\bzr\test\dir
directory
added dir

D:\user\python\bzr\test>bzr st
added:
   dir/

D:\user\python\bzr\test>cd dir
D:\user\python\bzr\test\dir>

D:\user\python\bzr\test\dir>bzr mkdir subdir
bzr: ERROR: cannot add: not a regular file, symlink or directory: subdir
   command: 'C:\\Python24\\Scripts\\bzr' 'mkdir' 'subdir'
       pwd: u'D:\\user\\python\\bzr\\test\\dir'
     error: bzrlib.errors.BzrError
   at C:\Python24\lib\site-packages\bzrlib\branch.py line 615, in add()
   see "C:\.bzr.log" for debug information

D:\user\python\bzr\test\dir>bzr st
added:
   dir/
unknown:
   dir\subdir

------------------------------------------------------------------------------

Note I'm stay in directory 'dir' and trying to create 'subdir' in 'dir'. 
When I print out what the path bzr trying to add in branch add() method 
this is:

D:\user\python\bzr\test\subdir

i.e. wrong path. Right path should be:

D:\user\python\bzr\test\dir\subdir


Any comments?

Alexander




More information about the bazaar mailing list