Windows version Auto-Ignores exe files. Why?

John A Meinel john at arbash-meinel.com
Wed May 17 13:34:22 BST 2006


Alexander Belchenko wrote:
> John Arbash Meinel пишет:
>> Mark wrote:
>>> On 5/12/06, *Wouter van Heyst* <larstiq at larstiq.dyndns.org
>>>     .exe is in the default ignore list since they are usually generated
>>>     files that only clutter your bzr status output. You can add any file
>>>     that matches an ignore pattern and that will take precedence over
>>> the
>>>     ignore. Actually being able to edit the default ignores is something
>>>     that we want, see the recent thread 'discussing ignore rules'.
>>>
>>>     I'm afraid that is not yet possible, short from hacking up
>>>     bzrlib/__init__.py :/
>>>  
>>> Yes, thanks for this information, it helps quite a bit.  Unfortunately
>>> it also means that bzr is not usable for me right now, as I need to
>>> store quit a few binaries in revision control and I don't want to take
>>> the risk that one of them might be missed due to an auto-ignore by
>>> bazaar.
>>>  
>>> Thanks for the information though
>>> -mark
>>
>> Well, for your copy of bzr you could just edit bzrlib/__init__.py and
>> remove line 29:
>> '*.exe'.
>>
>> I realize you are probably on windows, and thus might be using the
>> 'compiled' bzr.exe, so you would have to ask Alexander to re-create one
>> for you with the change.
> 
> I wonder is this change could be done via special plugin that modify
> DEFAULT_IGNORE list in-place? If yes then I'm willing to write this
> plugin very quickly.
> 
> -- 
> Alexander

It definitely seems possible to do in a plugin. You could make it as
simple as:

import bzrlib
bzrlib.DEFAULT_IGNORE.remove('*.exe')

Or you could do something fancy which would read something in ~/.bazaar/

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/20060517/f83f695b/attachment.pgp 


More information about the bazaar mailing list