@NotNull private static File identifyBranchHeadFile(@NotNull HgVersion version,@NotNull File parentCacheFile){
  if (version.hasBranch2()) {
    File file=new File(parentCacheFile,"branch2-served");
    return file.exists() ? file : new File(parentCacheFile,"branch2-base");
  }
  if (version.hasBranchHeadsBaseServed()) {
    File file=new File(parentCacheFile,"branchheads-served");
    return file.exists() ? file : new File(parentCacheFile,"branchheads-base");
  }
  return new File(parentCacheFile,"branchheads");
}

@ NotNull private static File identifyBranchHeadFile ( @ NotNull HgVersion version , @ NotNull File parentCacheFile ) { if ( version . hasBranch2 ( ) ) { File file = new File ( parentCacheFile , "branch2-served" ) ; return file . exists ( ) ? file : new File ( parentCacheFile , "branch2-base" ) ; } if ( version . hasBranchHeadsBaseServed ( ) ) { File file = new File ( parentCacheFile , "branchheads-served" ) ; return file . exists ( ) ? file : new File ( parentCacheFile , "branchheads-base" ) ; } return new File ( parentCacheFile , "branchheads" ) ; }
identify file with branches and heads information depends on hg version ;
