[merge][rfc] New command: 'bzr remove-tree'

Daniel Silverstone dsilvers at digital-scurf.org
Sat Nov 11 13:04:40 GMT 2006


On Sat, 2006-11-11 at 13:58 +0200, Alexander Belchenko wrote:
> > There is a lot of conversation about the correct name for this command
> > but I coded up the minor builtin 'remove-tree' and added blackbox tests
> > and a NEWS item for it.
> May be I miss something. What for this command intended to be?

It removes the working tree from a bzrdir.

Cases I envisage its use for are:
 * I have rsynced a copy of my branch to my server to be my http served
   branch which I will sftp update. I can't update the working tree over
   sftp so instead I ssh to the server and run 'bzr remove-tree' in the
   copy being served so that it doesn't confuse people with it being
   present
 * I have a bunch of branches which are essentially mirrors of other
   people's branches which I use for merging from, I can run the command
   in those branches to remove the working tree and therefore save disk
   space.

And the particular case I wrote it for:

 * I have a no-working-tree repo which I use daily.
   Once, just once, I did "bzr checkout ." in a branch inside it to
   check on the state of a file, expecting there to be a command to
   undo the result of what I just did. There wasn't, but now there is.

:-)

D.

-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895






More information about the bazaar mailing list