timeless wrote:
> On Fri, Sep 5, 2008 at 12:24 PM, Stephen Lau<[EMAIL PROTECTED]> wrote:
>
>> you could put an 'update' hook in your personal workspace to rm .hgignore
>> after an update
>>
>
> actually, i'm interested. i have some other repos where i have files
> that get deleted by build systems and i'd love to not deal w/ such
> noise, so an example script would be welcome :)
> _______________________________________________
> tools-discuss mailing list
> [email protected]
>
You could put the following in something like /home/foo/bin/cleanup.sh:
#!/bin/sh
ROOT=$(hg root)
if [ $HG_ERROR -eq 0 ]; then
rm $ROOT/.hgignore
fi
and then in either your personal /home/foo/.hgrc (for all your repos) or
your repo's .hg/hgrc (to scope it just to that one repo), put:
[hooks]
update=/home/foo/bin/cleanup.sh
this will execute cleanup.sh everytime you do an update
cheers,
steve
--
stephen lau | [EMAIL PROTECTED] | www.whacked.net
_______________________________________________
tools-discuss mailing list
[email protected]