diff src/org/tmatesoft/hg/core/HgRepoFacade.java @ 586:73c20c648c1f

HgCommitCommand initial support
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 26 Apr 2013 18:38:41 +0200
parents e4ee4bf4c7d0
children 72c979555cb8
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgRepoFacade.java	Thu Apr 25 17:53:44 2013 +0200
+++ b/src/org/tmatesoft/hg/core/HgRepoFacade.java	Fri Apr 26 18:38:41 2013 +0200
@@ -126,9 +126,31 @@
 		return new HgIncomingCommand(repo);
 	}
 	
-	// TODO [1.1] add factory methods for all new commands
+	public HgCloneCommand createCloneCommand() {
+		return new HgCloneCommand();
+	}
+	
+	public HgUpdateConfigCommand createUpdateRepositoryConfigCommand() {
+		return HgUpdateConfigCommand.forRepository(repo);
+	}
+	
+	public HgAddRemoveCommand createAddRemoveCommand() {
+		return new HgAddRemoveCommand(repo);
+	}
+	
+	public HgCheckoutCommand createCheckoutCommand() {
+		return new HgCheckoutCommand(repo);
+	}
+	
+	public HgRevertCommand createRevertCommand() {
+		return new HgRevertCommand(repo);
+	}
 	
 	public HgAnnotateCommand createAnnotateCommand() {
 		return new HgAnnotateCommand(repo);
 	}
+	
+	public HgCommitCommand createCommitCommand() {
+		return new HgCommitCommand(repo);
+	}
 }