[Bug 3501] New: pretxncommit fails with hg commit --amend

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Fri Jun 15 10:53:16 CDT 2012


http://bz.selenic.com/show_bug.cgi?id=3501

          Priority: normal
            Bug ID: 3501
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: pretxncommit fails with hg commit --amend
          Severity: bug
    Classification: Unclassified
                OS: Mac OS
          Reporter: phleet at gmail.com
          Hardware: Macintosh
            Status: UNCONFIRMED
           Version: 2.2.1
         Component: Mercurial
           Product: Mercurial

If I have the following in my ~/.hgrc:

[hooks]
pretxncommit.foo = echo "PRETXNCOMMIT $HG_NODE"; hg log -r $HG_NODE

I get the following when running hg commit --amend:

PRETXNCOMMIT ea558bf3b5a3df51dcb6af9c61debcd0f7face3c
abort: 00changelog.i at ea558bf3b5a3: no node!
PRETXNCOMMIT a25a0e6cff13fde4d81bd523c6734f7a6258609a
abort: 00changelog.i at a25a0e6cff13: no node!

The commit then succeeds, but as you can see, I'm not able to retrieve the logs
from the commit about to happen.

I also don't understand why there the pretxncommit hook is running twice.

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


More information about the Mercurial-devel mailing list