command name to remove a working tree preserving the branch

Robert Collins robertc at robertcollins.net
Tue Feb 21 01:01:09 GMT 2006


Inspiration sought for naming the following pseudo code:

$ bzr ????  [path]

which runs roughly

if path is None:
    path = '.'
dir = bzrdir.BzrDir.open_containing(path)
dir.open_workingtree().revert(revision_id=NULL_REVISION)
dir.get_workingtree_transport(None).delete_tree('')


The effect of that is to remove all user source files and directories
(probably conflicting on build output preventing directory removal like
crazy) and remove the checkout data, so that you have a 'treeless'
branch left behind.

Martin suggested 'bzr discard'.

Rob


-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060221/caec68e8/attachment.pgp 


More information about the bazaar mailing list