com.aragost.javahg.commands
Class StatusCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.StatusCommandFlags
com.aragost.javahg.commands.StatusCommand
- All Implemented Interfaces:
- Iterable<StatusLine>
public class StatusCommand
- extends StatusCommandFlags
- implements Iterable<StatusLine>
Command class for executing hg status. Set flags from
StatusCommandFlags
and call the execute()
method.
Methods inherited from class com.aragost.javahg.commands.flags.StatusCommandFlags |
added, all, change, clean, copies, deleted, exclude, getCommandName, ignored, include, modified, on, removed, rev, unknown |
Methods inherited from class com.aragost.javahg.internals.AbstractCommand |
cancel, clear, cmdAppend, cmdAppend, cmdAppend, cmdAppend, cmdAppend, doneHook, getErrorString, getRepository, getReturnCode, isSuccessful, launchIterator, launchStream, launchString, needsInputLine, reopenOutputChannelStream, sendLine, toString, withDebugAndChangesetStyle, withDebugFlag |
StatusCommand
public StatusCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
execute
public StatusResult execute()
- Returns:
- a status result.
execute
public StatusResult execute(String... files)
- Parameters:
files
- the files to query.
- Returns:
- a status result.
execute
public StatusResult execute(File... files)
- Parameters:
files
- the files to query.
- Returns:
- a status result.
lines
public List<StatusLine> lines()
- Returns:
- a list of status lines.
lines
public List<StatusLine> lines(String... files)
- Parameters:
files
- the files to query.
- Returns:
- a list of status lines.
lines
public List<StatusLine> lines(File... files)
- Parameters:
files
- the files to query.
- Returns:
- a list of status lines.
iterator
public Iterator<StatusLine> iterator()
- Specified by:
iterator
in interface Iterable<StatusLine>
iterator
public Iterator<StatusLine> iterator(String... files)
- Parameters:
files
- the files to query
- Returns:
- an iterator over status lines. The iterator must be
exhausted before another command is sent to the server.
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.