Mercurial push error - hook failed
- by raychenon
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:
remote: To prevent this mistake in your local repository,
remote: add to Mercurial.ini or .hg/hgrc:
remote:
remote: [hooks]
remote: pretxncommit.crlf = python:hgext.win32text.forbidcrlf
remote:
remote: and also consider adding:
remote:
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 )
[hooks]
pretxncommit.crlf = python:hgext.win32text.forbidcrlf
pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
[extensions]
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