[Bug 3609] New: Commit with --amend does not trigger precommit hooks

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Tue Sep 4 15:23:25 CDT 2012


          Priority: normal
            Bug ID: 3609
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Commit with --amend does not trigger precommit hooks
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: alex.gronholm+hg at nextday.fi
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.2.3
         Component: Mercurial
           Product: Mercurial

"hg commit --amend" does not execute precommit or commit hooks.
"hg commit" does. If I have a source code checker that is triggered by a
commit, this means bad code could still get through when a commit is amended.
This may be related to the fix of #3501 where hooks were executed twice. Now it
seems they're just not executed at all.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list