RFC: bzr rm rethink

Martin Pool mbp at canonical.com
Fri Aug 8 04:40:44 BST 2008


On Fri, Aug 8, 2008 at 9:46 AM, Robert Collins
<robertc at robertcollins.net> wrote:
> so bzr rm has a whole bunch of complexity - 'keep', 'force' and a bunch
> of flags.
>
> I wonder if a better approach would be to mirror add:
> $ rm foo bar
> $ bzr rm
> deleted foo
> deleted bar
>
> $ rm gam quux
> $ bzr rm quux
> deleted quux
>
> I'm adding the first form now, but consider by analogy that we don't
> have 'bzr add missing' touch a file for us :)

I'm all in favour of reducing complexity and of adding the first form.

I guess the way to make it most similar to add would be to require the
user to manually delete the files first, and either do nothing or warn
or give an error if they have not been removed, which I suppose is the
point of your second example.  I think just doing nothing would be too
confusing, and requiring it to be added as a separate step might seem
unnecessary.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list