removing files deleted from the working tree

Max Bowsher maxb at f2s.com
Wed Aug 18 00:07:48 BST 2010


On 17/08/10 23:52, Joey Morris wrote:
> From the Bazaar tutorial: "You can delete files or directories by just
> deleting them from the working directory. This is a bit different to CVS,
> which requires that you also do cvs remove." I'm fairly new to version
> control and Bazaar. What is the rationale behind this behavior? Is it solely
> for the convenience of not needing a bzr remove?
> 
> It seems a little dangerous to delete files without an explicit bzr remove.
> To be fair, I guess it's dangerous only if you aren't paying close attention
> to the output of bzr status before you commit, which is bad practice anyway.
> Even so, I think I like Mercurial's behavior better, where the status
> command identifies deleted files as "missing" instead of "removed", and a
> commit doesn't remove missing files from the branch.

Coming from CVS, Subversion and Mercurial myself, Bazaar's behaviour
here felt a bit odd to me too, at first, but after a while I've come to
believe that Bazaar's choice saves some keystrokes and hurts nothing, so
now I like it.

> Can I configure Bazaar
> so that bzr remove is required to remove a file?

Sorry, no, it's not optional.

Max.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100818/7eb4fa25/attachment.pgp 


More information about the bazaar mailing list