`bzr commit file1` also commits deletion of file2
Michael Ellerman
michael at ellerman.id.au
Mon Jun 5 16:22:47 BST 2006
On 6/5/06, Adeodato Simó <dato at net.com.org.es> wrote:
> Hello.
>
> `bzr help commit` advertises that if selected files are specified, only
> changes to those files are commited. However, it seems not to work
> properly if an uncommited removal is present in the branch:
>
> % bzr --version | head -n 1
> bzr (bazaar-ng) 0.8.2
>
> % bzr init test
> % cd test
> % echo hi >k
> % echo bye >g
>
> % b add k g
> added k
> added g
>
> % b ci -m 'Added k and g.'
> added g
> added k
> Committed revision 1.
>
> % b remove k
> % echo moo >>g
>
> % b ci -m "Make g moo, don't commit k's removal yet." g
> modified g
> deleted k
> Committed revision 2.
>
> In the last step, I would not expect for "deleted k" to be commited.
This is already logged as https://launchpad.net/products/bzr/+bug/46635.
Your test case is better though, so perhaps you can add it as a
comment to the bug?
cheers
More information about the bazaar
mailing list