[patch] exclude .bzrignore from export, this time with tests

John A Meinel john at arbash-meinel.com
Fri Dec 30 19:37:20 GMT 2005


Jamie Wilkinson wrote:
> This one time, at band camp, John A Meinel wrote:
>> I would just do:
>>
>> mkdir a
>> cd a
>> bzr init
>> echo a > a
>> bzr add
>> bzr commit -m a
>> bzr ignore 'something'
>> bzr commit -m "ignoring"
>>
>> bzr export ../dir_export
>>
>> cd ..
>> files = sorted(os.listdir('dir_export'))
>> self.assertEqual(['a'], files)
>>
>> Naturally the above needs to be changed into python commands. But I
>> think it gives the idea. Just do an export to a directory, and make sure
>> that there is no .bzr/ directory and no .bzrignore file.
>> If you have the test, it won't re-appear.
> 
> Neat, it was the listdir part I had the mental block on :)
> 
> Committed at revno 1528 in the same branch.

Looks good. Now that it has been cleaned up, I'm +1. If we get another,
I'll pull it into my integration branch.

John
=:->


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


More information about the bazaar mailing list