private void removedFiles() throws VcsException {
Sets.SetView<String> removedFiles = Sets.difference(baseChanges.keySet(), changes.keySet());
for (String removedFile : removedFiles) {
Change baseChange = baseChanges.get(removedFile);
ContentRevision afterRevision = null;
if (baseChange.getType().equals(Change.Type.MODIFICATION)) {
ContentRevision baseChangeBeforeRevision = baseChange.getBeforeRevision();
assert baseChangeBeforeRevision != null;
afterRevision = new SimpleContentRevision(
baseChangeBeforeRevision.getContent(),
baseChangeBeforeRevision.getFile(),
hash
);
}
diff.add(new Change(baseChange.getAfterRevision(), afterRevision));
}