mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-09 17:12:15 +01:00
merge with branch issue-353
This commit is contained in:
@@ -121,7 +121,7 @@ public class SvnPostReceiveHookEvent extends AbstractRepositoryHookEvent
|
||||
*/
|
||||
private List<Changeset> fetchChangesets()
|
||||
{
|
||||
List<Changeset> result = new ArrayList<Changeset>();
|
||||
List<Changeset> result = new ArrayList<Changeset>(1);
|
||||
SVNRepository repository = null;
|
||||
|
||||
try
|
||||
|
||||
@@ -35,6 +35,7 @@ package sonia.scm.repository;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -119,7 +120,7 @@ public class SvnPreReceiveHookEvent extends AbstractRepositoryHookEvent
|
||||
*/
|
||||
private Collection<Changeset> fetchChangesets()
|
||||
{
|
||||
List<Changeset> csets = new ArrayList<Changeset>();
|
||||
List<Changeset> csets = new ArrayList<Changeset>(1);
|
||||
SVNClientManager cm = null;
|
||||
|
||||
try
|
||||
|
||||
@@ -60,6 +60,12 @@ import java.util.Map;
|
||||
public final class SvnUtil
|
||||
{
|
||||
|
||||
/**
|
||||
* svn path updated
|
||||
* same as modified ({@link SVNLogEntryPath#TYPE_MODIFIED})?
|
||||
*/
|
||||
private static final char TYPE_UPDATED = 'U';
|
||||
|
||||
/**
|
||||
* the logger for SvnUtil
|
||||
*/
|
||||
@@ -129,10 +135,14 @@ public final class SvnUtil
|
||||
|
||||
break;
|
||||
|
||||
case TYPE_UPDATED :
|
||||
case SVNLogEntryPath.TYPE_MODIFIED :
|
||||
modifications.getModified().add(path);
|
||||
|
||||
break;
|
||||
|
||||
default :
|
||||
logger.debug("unknown modification type {}", type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,7 +162,7 @@ public final class SvnUtil
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.error("could not close svn repository session");
|
||||
logger.error("could not close svn repository session", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user