|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.GraftCommandFlags
com.aragost.javahg.commands.GraftCommand
public class GraftCommand
Command class for executing hg graft. Set flags from
GraftCommandFlags and call the execute(com.aragost.javahg.Changeset) method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand |
|---|
AbstractCommand.State |
| Constructor Summary | |
|---|---|
GraftCommand(Repository repository)
|
|
| Method Summary | |
|---|---|
protected void |
clear()
|
protected void |
doneHook()
This method is called when the processing of a command is finished. |
GraftContext |
execute(Changeset changeset)
Run hg graft with the specified revisions. |
boolean |
executeContinue()
Execute the graft command with the continue flag. |
boolean |
isSuccessful()
Check if the command ended with a zero return code. |
| Methods inherited from class com.aragost.javahg.commands.flags.GraftCommandFlags |
|---|
currentdate, currentuser, date, getCommandName, on, tool, user |
| Methods inherited from class com.aragost.javahg.internals.AbstractCommand |
|---|
cancel, cmdAppend, cmdAppend, cmdAppend, cmdAppend, cmdAppend, getErrorString, getRepository, getReturnCode, launchIterator, launchStream, launchString, needsInputLine, reopenOutputChannelStream, sendLine, toString, withDebugAndChangesetStyle, withDebugFlag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GraftCommand(Repository repository)
repository - the repository associated with this command.| Method Detail |
|---|
public boolean isSuccessful()
AbstractCommand
isSuccessful in class AbstractCommandpublic GraftContext execute(Changeset changeset)
If the grafting is succesful null is return. Otherwise a MergeContext is return where the conflicts can be inspected and resolved.
changeset - the changeset to graftpublic boolean executeContinue()
protected void doneHook()
AbstractCommandIt can be overridden in subclasses.
doneHook in class AbstractCommandprotected void clear()
clear in class AbstractCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||