package bluej.groupwork;
import threadchecker.OnThread;
import threadchecker.Tag;
import java.io.File;
import java.util.List;
import java.util.Set;
| Represents a set of update results from an update, and provides a method to decide
| conflict resolution in the case of binary file conflicts.
|
| @author Davin McCall
|
public interface UpdateResults
{
| Check whether a merge commit is needed to complete the merge.
|
public boolean mergeCommitNeeded();
| Get a list of File objects that represents conflicts.
|
public List getConflicts();
| Get the set of files which had binary conflicts. These are files which
| have been modified both locally and in the repository. A decision needs to
| be made about which version (local or repository) is to be retained; use
| the overrideFiles() method to finalise this decision.
|
public Set getBinaryConflicts();
| Once the initial update has finished and the binary conflicts are known,
| this method must be called to select whether to keep the local or use the
| remove version of the conflicting files.
|
| @param files A set of files to fetch from the repository, overwriting the
| local version. (For any file not in the set, the local version
| is retained).
|
@OnThread(Tag.FXPlatform)
public void overrideFiles(Set<File> files);
}
top,
use,
map,
interface UpdateResults
. mergeCommitNeeded
. getConflicts
. getBinaryConflicts
. overrideFiles
28 neLoCode
+ 15 LoComm