Commits

Sebastian Sdorra committed e5f19a7

allow multi line mercurial messages

Comments (0)

Files changed (2)

scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgHookCallbackServlet.java

 import sonia.scm.repository.RepositoryUtil;
 import sonia.scm.repository.api.HgHookMessage;
 import sonia.scm.repository.api.HgHookMessage.Severity;
-import sonia.scm.repository.api.HookMessageProvider;
 import sonia.scm.repository.spi.HgHookContextProvider;
 import sonia.scm.repository.spi.HookEventFacade;
 import sonia.scm.security.CipherUtil;

scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py

 def printMessages(ui, msgs):
   for line in msgs:
     if line.startswith("_e") or line.startswith("_n"):
-      ui.warn(line[2:]);
+      line = line[2:];
+    ui.warn(line);
 
 def callHookUrl(ui, repo, hooktype, node):
   abort = True