call pending lambda if available

This commit is contained in:
Sebastian Sdorra
2011-10-19 13:35:16 +02:00
parent 5467fc97e0
commit 8f488e5090
2 changed files with 8 additions and 1 deletions

View File

@@ -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))

View File

@@ -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: