continue;
}
final VcsKey key = MksVcs.OUR_KEY;
switch (state.status) {
case ADDED: {
MksChangePackage changePackage = getChangePackage(changePackages, state);
Change change = new Change(
null,
CurrentContentRevision.create(filePath),
FileStatus.ADDED);
if (changePackage == null) {
builder.processChange(change, key);
} else {
ChangeList changeList = MksVcs.getInstance(myProject).getChangeListAdapter().trackMksChangePackage(changePackage);
builder.processChangeInList(change, changeList, key);
}
break;
}
case CHECKED_OUT: {
MksChangePackage changePackage = getChangePackage(changePackages, state);
Change change = new Change(
new MksContentRevision(MksVcs.getInstance(myProject), filePath, state.memberRevision),
CurrentContentRevision.create(filePath),
FileStatus.MODIFIED);
if (changePackage == null) {
builder.processChange(change, key);
} else {
ChangeList changeList = MksVcs.getInstance(myProject).getChangeListAdapter().trackMksChangePackage(changePackage);
builder.processChangeInList(change, changeList, key);
}
break;
}
case MODIFIED_WITHOUT_CHECKOUT: {
builder.processModifiedWithoutCheckout(virtualFile);
break;
}
case SYNC:
// todo some of those changes belong to the Incoming tab
builder.processChange(new Change(
new MksContentRevision(MksVcs.getInstance(myProject), filePath, state.workingRevision),
new MksContentRevision(MksVcs.getInstance(myProject), filePath, state.memberRevision),
FileStatus.OBSOLETE), key);
break;
case DROPPED: {
MksChangePackage changePackage = getChangePackage(changePackages, state);
Change change = new Change(
new MksContentRevision(MksVcs.getInstance(myProject), filePath, state.memberRevision),
CurrentContentRevision.create(filePath),
FileStatus.DELETED);
if (changePackage == null) {