pass supported repository commands to scm state

This commit is contained in:
Sebastian Sdorra
2012-08-03 07:50:04 +02:00
parent f6dac33e22
commit d919338cc2
7 changed files with 125 additions and 27 deletions

View File

@@ -53,6 +53,7 @@ import sonia.scm.Type;
import sonia.scm.io.FileSystem;
import sonia.scm.logging.SVNKitLogger;
import sonia.scm.plugin.ext.Extension;
import sonia.scm.repository.spi.SvnRepositoryServiceProvider;
import sonia.scm.store.StoreFactory;
import sonia.scm.util.AssertUtil;
import sonia.scm.util.Util;
@@ -86,7 +87,9 @@ public class SvnRepositoryHandler
public static final String TYPE_NAME = "svn";
/** Field description */
public static final Type TYPE = new Type(TYPE_NAME, TYPE_DISPLAYNAME);
public static final Type TYPE = new RepositoryType(TYPE_NAME,
TYPE_DISPLAYNAME,
SvnRepositoryServiceProvider.COMMANDS);
/** the logger for SvnRepositoryHandler */
private static final Logger logger =

View File

@@ -52,7 +52,7 @@ public class SvnRepositoryServiceProvider extends RepositoryServiceProvider
{
/** Field description */
private static final Set<Command> COMMANDS = ImmutableSet.of(Command.BLAME,
public static final Set<Command> COMMANDS = ImmutableSet.of(Command.BLAME,
Command.BROWSE, Command.CAT,
Command.DIFF, Command.LOG);