[MERGE REVIEW] Clean-tree
Matthieu Moy
Matthieu.Moy at imag.fr
Mon Jun 5 09:53:53 BST 2006
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 ?
--
Matthieu
More information about the bazaar
mailing list