Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailing list filter rule generator / verifier #733

Closed
wants to merge 6 commits into from
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -188,7 +188,7 @@ public static void main(String[] args) throws Exception {
commands.put("jcheck", GitJCheck::main);
commands.put("webrev", GitWebrev::main);
commands.put("defpath", GitDefpath::main);
commands.put("debug", GitDebug::main);
commands.put("debug", SkaraDebug::main);
commands.put("fork", GitFork::main);
commands.put("pr", GitPr::main);
commands.put("token", GitToken::main);
@@ -28,20 +28,20 @@

import java.util.List;

public class GitDebug {
public class SkaraDebug {
public static void main(String[] args) throws Exception {
var commands = List.of(
Default.name("help")
.helptext("show help text")
.main(GitDebugHelp::main),
.main(SkaraDebugHelp::main),
Command.name("import-hg")
.helptext("convert hg to git")
.helptext("import a hg repository")
.main(GitOpenJDKImport::main),
Command.name("import-git")
.helptext("convert git to hg")
.helptext("import git repository")
.main(GitOpenJDKImport::main),
Command.name("verify-import")
.helptext("verify hg to git")
.helptext("verify imported repository")
.main(GitVerifyImport::main),
Command.name("mlrules")
.helptext("create and verify jdk mailing list filter rules")
@@ -50,8 +50,8 @@ public static void main(String[] args) throws Exception {

HttpProxy.setup();

var parser = new MultiCommandParser("git debug", commands);
var parser = new MultiCommandParser("skara debug", commands);
var command = parser.parse(args);
command.execute();
}
}
}
@@ -30,7 +30,7 @@
import java.util.logging.Level;
import java.util.stream.Collectors;

public class GitDebugHelp {
public class SkaraDebugHelp {
private static final class Pair<T1, T2> {
T1 e1;
T2 e2;