hg diff/status always returns zero?
Stephen Rasku
mercurial at srasku.net
Wed May 6 18:09:45 CDT 2009
On Wed, May 6, 2009 at 17:54, Dennis Brakhane <brakhane at googlemail.com> wrote:
> On Wed, May 6, 2009 at 11:42 PM, Stephen Rasku <mercurial at srasku.net> wrote:
>> 1 9-17 * * * (. .bashrc; cd $PROJECT; hg diff || pwd)
>>
>> This will send me the diffs and then append the current working
>> directory to the e-mail. If there is no diff then I don't get an
>> e-mail at all.
>
> Be sure to check out the notify extension (and hooks in general), in
> case you just want to receive a mail with diffs every time a
> commit/push was made.
>
> http://www.selenic.com/mercurial/wiki/index.cgi/NotifyExtension
Thanks for the tip.
I am thinking of using this to remind me to commit if there are
outstanding diffs. I don't really want to use a script to do an auto
commit since I may not want to check in yet or I may only want to
commit certain files. In any case I want to specify my own log
messages.
...Stephen
More information about the Mercurial
mailing list