Mercurial push error - hook failed

Posted by raychenon on Stack Overflow See other posts from Stack Overflow or by raychenon
Published on 2011-01-12T10:28:11Z Indexed on 2011/01/12 19:53 UTC
Read the original article Hit count: 508

Filed under:

I committed some changesets. Now I want to push them to remote repository. I get this error during push

pushing to http://hguser:***@z2xeu:1337/hg/cms
searching for changes
1 changesets found
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 2 changes to 2 files
remote: Attempt to commit or push text file(s) using CRLF line endings
remote: in 700e14d32918: src/main/webapp/WEB-INF/jsp/search.jsp
remote: To prevent this mistake in your local repository,
remote: add to Mercurial.ini or .hg/hgrc:
remote: [hooks]
remote: pretxncommit.crlf = python:hgext.win32text.forbidcrlf
remote: and also consider adding:
remote: [extensions]
remote: hgext.win32text =
remote: [encode]
remote: ** = cleverencode:
remote: [decode]
remote: ** = cleverdecode:
remote: transaction abort!
remote: rollback completed
remote: abort: pretxnchangegroup.crlf hook failed
[command returned code 1 Wed Jan 12 11:14:55 2011]

To prevent this, I wrote in the .hg/hgrc file ( there is no Mercurial.ini )

pretxncommit.crlf = python:hgext.win32text.forbidcrlf
pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf

hgext.win32text =

But I still get the same error as above. I'm pretty sure pretxnchangegroup.crlf is involved in this, maybe a python file ? I use only unicode characters in files committed

© Stack Overflow or respective owner

Related posts about mercurial

Related posts about push