[MERGE REVIEW] Clean-tree

Aaron Bentley aaron.bentley at utoronto.ca
Wed Jun 7 18:02:12 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthieu Moy wrote:
> John Arbash Meinel <john at arbash-meinel.com> writes:
> 
>> +def is_detritus(subp):
>> +    return subp.endswith('.THIS') or subp.endswith('.BASE') or\
>> +        subp.endswith('.OTHER') or subp.endswith('~') or
>> subp.endswith('.tmp')
>>
>>
>> For performance this probably should be turned into the regex:
>> _is_detritus_re = re.compile(
>>     r'.*(?:(?:\.THIS$)|(?:\.BASE$)|(?:\.OTHER$)|(?:~$))'
>>     )
> 
> Shouldn't this be customizable, e.g. in a .bzrdetritus with the same
> syntax as .bzrignore ?

I don't think so.  This is a list of junk that bzr may leave behind, and
bzr knows that best.  If you want to build up a list of files you want
to delete, 'find' can do that for you.  Unlike Arch, we don't want to
have multiple classes of ignored files, which is a direction this
suggestion would lead us in.

I talked with Martin, and we decided not to put clean-tree in, but I'm
adding a --detritus option to 'bzr ls', so people can use it with xargs.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhwaT0F+nu1YWqI0RAh3fAJ9sSus1b/S9LegXROhmk4JdmjlmbwCeMndX
dROzlFzy2MCvyVSe3o0v5k0=
=igHF
-----END PGP SIGNATURE-----




More information about the bazaar mailing list