mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fix mercurial pre-receive hooks
This commit is contained in:
@@ -81,6 +81,21 @@ public class AbstractHgHandler
|
|||||||
/** Field description */
|
/** Field description */
|
||||||
public static final String ENV_REVISION = "SCM_REVISION";
|
public static final String ENV_REVISION = "SCM_REVISION";
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
public static final String ENV_PAGE_LIMIT = "SCM_PAGE_LIMIT";
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
public static final String ENV_PAGE_START = "SCM_PAGE_START";
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
public static final String ENV_REVISION_END = "SCM_REVISION_END";
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
public static final String ENV_REVISION_START = "SCM_REVISION_START";
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
public static final String ENV_NODE = "HG_NODE";
|
||||||
|
|
||||||
/** the logger for AbstractHgHandler */
|
/** the logger for AbstractHgHandler */
|
||||||
private static final Logger logger =
|
private static final Logger logger =
|
||||||
LoggerFactory.getLogger(AbstractHgHandler.class);
|
LoggerFactory.getLogger(AbstractHgHandler.class);
|
||||||
@@ -396,6 +411,11 @@ public class AbstractHgHandler
|
|||||||
if (context.isPending())
|
if (context.isPending())
|
||||||
{
|
{
|
||||||
env.put(ENV_PENDING, directory.getAbsolutePath());
|
env.put(ENV_PENDING, directory.getAbsolutePath());
|
||||||
|
|
||||||
|
if ( extraEnv.containsKey( ENV_REVISION_START ) )
|
||||||
|
{
|
||||||
|
env.put(ENV_NODE, extraEnv.get(ENV_REVISION_START));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
env.put(ENV_PYTHON_PATH, Util.nonNull(config.getPythonPath()));
|
env.put(ENV_PYTHON_PATH, Util.nonNull(config.getPythonPath()));
|
||||||
|
|||||||
@@ -55,18 +55,6 @@ public class HgChangesetViewer extends AbstractHgHandler
|
|||||||
implements ChangesetViewer
|
implements ChangesetViewer
|
||||||
{
|
{
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
public static final String ENV_PAGE_LIMIT = "SCM_PAGE_LIMIT";
|
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
public static final String ENV_PAGE_START = "SCM_PAGE_START";
|
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
public static final String ENV_REVISION_END = "SCM_REVISION_END";
|
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
public static final String ENV_REVISION_START = "SCM_REVISION_START";
|
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
public static final String RESOURCE_LOG = "/sonia/scm/hglog.py";
|
public static final String RESOURCE_LOG = "/sonia/scm/hglog.py";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user