com.aragost.javahg.commands
Class StatusResult
java.lang.Object
com.aragost.javahg.commands.StatusResult
public class StatusResult
- extends Object
An aggregated status result. This class gives easy access to the
files of different status types and will in particular parse added
and copied files correctly.
StatusResult
public StatusResult()
getModified
public List<String> getModified()
- Returns:
- files with status M
getAdded
public List<String> getAdded()
- List of added files. Files that has been copied is not
in this List, even though 'hg status' reports them with status
A. Instead they are in
copied
.
If the --copies flag isn't set the status command does
not report origin, and this List will also include copied
files.
- Returns:
- files with status A
getRemoved
public List<String> getRemoved()
- Returns:
- Files with status R
getClean
public List<String> getClean()
- Returns:
- files with status C
getMissing
public List<String> getMissing()
- Returns:
- files with status !
getUnknown
public List<String> getUnknown()
- Returns:
- files with status ?
getIgnored
public List<String> getIgnored()
- Returns:
- files with status I
getCopied
public Map<String,String> getCopied()
- Mapping copied files. The key is the new name and value is
origin.
- Returns:
- map from new name to origin for copied files.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.