[PATCH] export with top directory for tar format

John A Meinel john at arbash-meinel.com
Wed Jul 6 16:24:07 BST 2005


Lalo Martins wrote:

>And so says William Dodé on 06/07/05 21:45...
>  
>
>>When we export in tar format we cannot give a top directory like 
>>bzr-0.0.5/... It's very annoying when we extract it.
>>
>>If there is no better idea, i did a patch to can give the root 
>>directory as an option like : bzr export --format=tgz
>>--root=bzr-0.0.5 bzr-0.0.5.tgz (maybe --top instead of root to don't
>>make confusion with bzr root ?)
>>    
>>
>
>Sorry, not adding this feature to begin with, was a serious oversight on
>my part.  So I'm +1 on your patch.
>
>best,
>Lalo Martins
>  
>
Well, I think in general having the exported tarbal use '/' is probably 
bad form. Pretty much nobody expects to untar and get files in the 
current directory. I would actually say we should default to using the 
name of the tarball, which can be overridden with something like a 
'--root' flag.

So doing:

bzr export --format=tgz bzr-0.0.5.tar.gz
Would default to having root = 'bzr-0.0.5'
And if you wanted, explicitly giving a root would override this behavior.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050706/2d96e7ed/attachment.pgp 


More information about the bazaar mailing list