1 | |
package com.aragost.javahg.commands; |
2 | |
|
3 | |
import java.io.File; |
4 | |
|
5 | |
import com.aragost.javahg.Repository; |
6 | |
import com.aragost.javahg.commands.flags.RevertCommandFlags; |
7 | |
import com.aragost.javahg.internals.Utils; |
8 | |
|
9 | |
public class RevertCommand extends RevertCommandFlags { |
10 | |
|
11 | |
public RevertCommand(Repository repository) { |
12 | 3 | super(repository); |
13 | 3 | } |
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
public void execute() { |
19 | 1 | launchString(new String[0]); |
20 | 1 | } |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
public void execute(String...files) { |
26 | 2 | launchString(files); |
27 | 2 | } |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
public void execute(File... files) { |
33 | 0 | execute(Utils.fileArray2StringArray(files)); |
34 | 0 | } |
35 | |
} |