com.aragost.javahg.commands
Class UpdateResult

java.lang.Object
  extended by com.aragost.javahg.commands.UpdateResult

public class UpdateResult
extends Object

The statistic returned by running hg update.


Method Summary
static UpdateResult fromLine(String line)
          Factory method to create an UpdateResult.
 int getMerged()
           
 int getRemoved()
           
 int getUnresolved()
           
 int getUpdated()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getUpdated

public int getUpdated()
Returns:
number of updated files.

getMerged

public int getMerged()
Returns:
number of merged files. These are the files that were merged without conflict, see getUnresolved() for the number of files with merge conflicts.

getRemoved

public int getRemoved()
Returns:
number of removed files.

getUnresolved

public int getUnresolved()
Returns:
number of unresolved files.

fromLine

public static UpdateResult fromLine(String line)
Factory method to create an UpdateResult.

Parameters:
line - the final line of hg update
Returns:
the parsed update result.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.