com.aragost.javahg.commands
Class StatusResult

java.lang.Object
  extended by 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.


Constructor Summary
StatusResult()
           
 
Method Summary
 List<String> getAdded()
          List of added files.
 List<String> getClean()
           
 Map<String,String> getCopied()
          Mapping copied files.
 List<String> getIgnored()
           
 List<String> getMissing()
           
 List<String> getModified()
           
 List<String> getRemoved()
           
 List<String> getUnknown()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusResult

public StatusResult()
Method Detail

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.