com.aragost.javahg
Class WorkingCopy

java.lang.Object
  extended by com.aragost.javahg.WorkingCopy

public class WorkingCopy
extends Object

Represents working copy for a Repository.

Warning: The instance cache the information and will not see changes to the working copy. Create a new instance if you need the most current state.


Method Summary
 void add(String... files)
           
 String getBranchName()
           
 Changeset getParent1()
           
 Changeset getParent2()
           
 MergeContext merge(Changeset remote)
          Merge the working copy with the specified changeset
 StatusResult parent2Status()
           
 void remove(String... files)
           
 void setBranchName(String branchName)
          Set the branch name of working copy
 StatusResult status()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getParent1

public Changeset getParent1()

getParent2

public Changeset getParent2()

getBranchName

public String getBranchName()
Returns:
branch name for working copy

setBranchName

public void setBranchName(String branchName)
Set the branch name of working copy

Parameters:
branchName -

remove

public void remove(String... files)

add

public void add(String... files)

merge

public MergeContext merge(Changeset remote)
                   throws IOException
Merge the working copy with the specified changeset

Parameters:
remote -
Returns:
a MergeContext
Throws:
IOException

status

public StatusResult status()
Returns:
status for working copy relative to first parent

parent2Status

public StatusResult parent2Status()
Returns:
status for working copy relative to second parent


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