mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
register pretxnchangegroup for new mercurial repositories
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user