Line ending translation extension
Dj Gilcrease
digitalxero at gmail.com
Fri Sep 11 18:37:03 CDT 2009
Ok, I decided to do a little testing today on the hooks.
I created an empty repo
added a .hgeol file;
[patterns]
*.py = native
*.vcproj = windows
*.txt = native
Makefile = unix
*.jpg = binary
[repository]
native = unix
committed the add
added .hg/hgrc
[extensions]
hgext.eol =
hg add .hgignore
This worked, but never called the pre-add hook that I set via
"ui.setconfig('hooks', 'pre-add.eol',
'python:hgext.eol.pre_add_hook')" in the reposetup method, which I did
verify was being called. So are you not able to set hooks in reposetup
or does add just not have a pre-add hook like it should?
More information about the Mercurial-devel
mailing list