[issue2523] ui.verbose not set for precommit hook?
Marcus Lindblom
bugs at mercurial.selenic.com
Fri Nov 26 20:28:04 UTC 2010
New submission from Marcus Lindblom <macke at yar.nu>:
Hi,
I'm writing a small extension to check for tabs/trailing whitespace, and
started out using the pre-commit hook. As per
http://mercurial.selenic.com/wiki/WritingExtensions#Wrap_up:_what_belongs_wh
ere.3F these should be configured in uisetup().
Now, the ui.verbose flag isn't set when my hook is called, so any ui.note is
not written (even with --verbose) and the ui.verbose is never set.
I changed it to a pretxncommit hook (which needed to be configured in
reposetup instead) and then it worked as expected.
I'm not sure if the wiki or mercurial itself is to blame, though, hence I
report it here.
----------
messages: 14532
nosy: marcusl
priority: bug
status: unread
title: ui.verbose not set for precommit hook?
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2523>
____________________________________________________
More information about the Mercurial-devel
mailing list