merge with branch issue-353

This commit is contained in:
Sebastian Sdorra
2013-04-11 13:34:58 +02:00
3 changed files with 14 additions and 3 deletions

View File

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

View File

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

View File

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