command name to remove a working tree preserving the branch

James Blackwell jblack at merconline.com
Fri Feb 24 21:49:41 GMT 2006


On Tue, Feb 21, 2006 at 12:01:09PM +1100, Robert Collins wrote:
> 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'.

+1 on "the command without a name"
+1 on "discard"


-- 
My home page:   <a href="http://jblack.linuxguru.net">James Blackwell</a>
Gnupg 06357400  F-print AAE4 8C76 58DA 5902 761D  247A 8A55 DA73 0635 7400
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060224/15361d24/attachment.pgp 


More information about the bazaar mailing list