Note that there are some explanatory texts on larger screens.

plurals
  1. POMercurial HG 'pretxncommit.whitespace hook exited with status 1' but no hook specified
    primarykey
    data
    text
    <p>the title of this request says it all pretty much. I have no hooks defined in my .hgrc file, but I am getting this rollback message on running hg commit:</p> <pre><code>transaction abort! rollback completed abort: pretxncommit.whitespace hook exited with status 1 </code></pre> <p>my hgrc file looks like this:</p> <pre><code>[paths] default = 'the_address' [ui] username = 'my name and email address' verbose = True [extensions] mq = [diff] git = 1 unified = 8 </code></pre> <p>Just in case it is important. I am using Mercurial on Ubuntu 12.04 and I am trying to combine it with using a XAMPP installation (<a href="http://www.apachefriends.org/en/xampp-linux.html" rel="nofollow noreferrer">Apache friends</a>) in the /opt/ directory, so I always have to run sudo before doing a commit.</p> <p>Looking through SO and searching on the web, I found that this error is due to a hook with regard to trailing whitespace in the code (Compare <a href="http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html" rel="nofollow noreferrer">this part of Mercurial: The definitive guide</a> and also <a href="https://stackoverflow.com/questions/4162384/mercurial-pre-commit-hook">this SO entry on hooks</a>). Strangely enough, I haven't defined this hook anywhere, so I also don't know how to remove it.</p> <p>Any help in sorting this out would be appreciated. Thanks guys.</p> <p>============================================================================</p> <p>EDIT: Incorporating what smooth reggae suggested, I put a hgrc file in the home folder and the root folder and I adjusted the hgrc file in etc/mercurial just to find out what the deal with this problem is.</p> <p>I am not sure, how much more information debug = True should give, but I didn't get particularly much. At the beginning of the commit message, I see the following now:</p> <pre><code>could not import hgext.hgext.mq (No module named hgext.mq): trying hgext.mq could not import hgext.hgext.transplant (No module named hgext.transplant): trying hgext.transplant </code></pre> <p>So, this means, it can't find these two files, but why?</p> <p>Thanks again for all your help.</p> <p>EDIT2: Please note that the first EDIT is an unrelated issue and can be ignored for this particular question.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload