@Override public String getAnnotatedContent() { try { return CurrentContentRevision.create(myFile.toFilePath()).getContent(); } catch (VcsException e) { LOG.info(e); return ""; } }
public static HgFile getOriginalHgFile(Project project, VirtualFile root) { HgFile hgFile = new HgFile(root, VcsUtil.getFilePath(root.getPath())); if (project.isDisposed()) { return hgFile; } FilePath originalFileName = HgUtil.getOriginalFileName(hgFile.toFilePath(), ChangeListManager.getInstance(project)); return new HgFile(hgFile.getRepo(), originalFileName); }