boolean (VirtualFile repo, VirtualFile file) { // in the case of merge if the file was checked in, it will have 2 parents after hg pull. If it wasn't, it would have only one parent final Couple<HgRevisionNumber> parents = new HgWorkingCopyRevisionsCommand(myProject).parents(repo, file); return parents.second != null; }