use of com.intellij.history.core.tree.Entry in project intellij-community by JetBrains.
the class LocalHistoryTestCase method delete.
public DeleteChange delete(RootEntry root, String path) {
Entry e = root.getEntry(path);
e.getParent().removeChild(e);
return new DeleteChange(nextId(), path, e);
}
use of com.intellij.history.core.tree.Entry in project intellij-community by JetBrains.
the class LocalHistoryTestCase method rename.
public RenameChange rename(RootEntry root, String path, String newName) {
Entry e = root.getEntry(path);
RenameChange result = new RenameChange(nextId(), Paths.renamed(path, newName), e.getName());
e.setName(newName);
return result;
}
use of com.intellij.history.core.tree.Entry in project intellij-community by JetBrains.
the class LocalHistoryTestCase method changeContent.
public ContentChange changeContent(RootEntry root, String path, String content, long timestamp) {
Entry e = root.getEntry(path);
ContentChange result = new ContentChange(nextId(), path, e.getContent(), e.getTimestamp());
e.setContent(c(content), timestamp);
return result;
}
use of com.intellij.history.core.tree.Entry in project intellij-community by JetBrains.
the class SelectionCalculator method getRevisionContent.
@Nullable
private String getRevisionContent(Revision r) {
Entry e = r.findEntry();
if (e == null)
return null;
Content c = e.getContent();
if (!c.isAvailable())
throw new ContentIsUnavailableException();
return c.getString(e, myGateway);
}
use of com.intellij.history.core.tree.Entry in project intellij-community by JetBrains.
the class SelectionReverterTest method createReverter.
private SelectionReverter createReverter(int from, int to) {
List<Revision> rr = getRevisionsFor(f);
SelectionCalculator c = new SelectionCalculator(myGateway, rr, from, to);
Revision leftRev = rr.get(1);
Entry entry = getRootEntry().getEntry(f.getPath());
return new SelectionReverter(myProject, getVcs(), myGateway, c, leftRev, entry, from, to);
}
Aggregations