mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
call pending lambda if available
This commit is contained in:
@@ -414,6 +414,11 @@ public class AbstractHgHandler
|
||||
|
||||
if (context.isPending())
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("enable hg pending for {}", directory.getAbsolutePath());
|
||||
}
|
||||
|
||||
env.put(ENV_PENDING, directory.getAbsolutePath());
|
||||
|
||||
if (extraEnv.containsKey(ENV_REVISION_START))
|
||||
|
||||
@@ -42,7 +42,9 @@ baseUrl = "${url}"
|
||||
challenge = "${challenge}"
|
||||
credentials = os.environ['SCM_CREDENTIALS']
|
||||
|
||||
def callback(ui, repo, hooktype, node=None, source=None, **kwargs):
|
||||
def callback(ui, repo, hooktype, node=None, source=None, pending=None, **kwargs):
|
||||
if pending != None:
|
||||
pending()
|
||||
failure = True
|
||||
if node != None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user