register pretxnchangegroup for new mercurial repositories

This commit is contained in:
Sebastian Sdorra
2011-09-28 09:49:36 +02:00
parent e056c39435
commit 7a046fc698

View File

@@ -352,9 +352,13 @@ public class HgRepositoryHandler
webSection.setParameter("allow_push", "*");
hgrc.addSection(webSection);
// register hooks
INISection hooksSection = new INISection("hooks");
hooksSection.setParameter("changegroup.scm", "python:scmhooks.callback");
hooksSection.setParameter("pretxnchangegroup.scm",
"python:scmhooks.callback");
hgrc.addSection(hooksSection);
INIConfigurationWriter writer = new INIConfigurationWriter();