mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 02:31:14 +01:00
merge with branch issue-226
This commit is contained in:
@@ -82,6 +82,8 @@ public class HgPyFix
|
|||||||
* @param config
|
* @param config
|
||||||
*/
|
*/
|
||||||
public static void fixHgPy(SCMContextProvider context, HgConfig config)
|
public static void fixHgPy(SCMContextProvider context, HgConfig config)
|
||||||
|
{
|
||||||
|
if ((config != null) && config.isValid())
|
||||||
{
|
{
|
||||||
String basePath = context.getBaseDirectory().getAbsolutePath();
|
String basePath = context.getBaseDirectory().getAbsolutePath();
|
||||||
|
|
||||||
@@ -95,6 +97,12 @@ public class HgPyFix
|
|||||||
fixHgPy(file);
|
fixHgPy(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug(
|
||||||
|
"could not fix hg.py, because the configuration is not valid");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Visible for testing
|
* Visible for testing
|
||||||
|
|||||||
Reference in New Issue
Block a user