[BUG] Commit of subdir/file doesn't commit subdir
Michael Ellerman
michael at ellerman.id.au
Thu Oct 6 05:17:34 BST 2005
Hiya,
There's a weirdness in the behaviour of commit when you try to commit a file
in a subdirectory, but the subdirectory has only been added, not commited.
concordia ~/test$ bzr init
concordia ~/test$ mkdir subdir
concordia ~/test$ touch subdir/file
concordia ~/test$ bzr add subdir/file
added subdir
added subdir/file
concordia ~/test$ bzr ci -m "msg" subdir/file
bzr: ERROR: parent_id {subdir-20051006041051-0269e95fcc46b238} not in
inventory
at bzrlib/inventory.py line 384, in add()
see ~/.bzr.log for debug information
concordia ~/test$ bzr ci -m "msg" subdir subdir/file
added subdir/
added subdir/file
concordia ~/test$
So the problem is that the commit code only considers subdir/file, but that
doesn't work because we haven't committed subdir yet.
Not sure what the right fix for this is.
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051006/39554114/attachment.pgp
More information about the bazaar
mailing list