[PATCH] commit: added strict option

Henri Wiechers hwiechers at gmail.com
Wed Jun 10 00:43:44 CDT 2009


I don't want the commit to abort if unknown files are excluded with -X
or not included with -I or [FILE].

Is there a way to access to those option values from the hook? I can't find any.

On Thu, Jun 4, 2009 at 10:33 AM, Alexander
Solovyov<piranha at piranha.org.ua> wrote:
> On Thu, Jun 4, 2009 at 10:23 AM, Henri Wiechers <hwiechers at gmail.com> wrote:
>> Hi
>>
>> I named it the same as the option in bzr (see
>> http://doc.bazaar-vcs.org/bzr.dev/en/user-reference/bzr_man.html#commit),
>> but I'm open to suggestions.
>>
>> Does anyone have an example of a pre-commit hook that does this?
>
> pretxncommit.nounknown = (! hg st -u) > /dev/null
>
> --
> Alexander
>


More information about the Mercurial-devel mailing list