public int compare(Object arg0, Object arg1) { SVNLocationEntry pathRevision1 = (SVNLocationEntry) arg0; SVNLocationEntry pathRevision2 = (SVNLocationEntry) arg1; if (pathRevision1.getRevision() == pathRevision2.getRevision()) { return 0; } return pathRevision1.getRevision() < pathRevision2.getRevision() ? 1 : -1; } });
public int compare(Object arg0, Object arg1) { SVNLocationEntry pathRevision1 = (SVNLocationEntry) arg0; SVNLocationEntry pathRevision2 = (SVNLocationEntry) arg1; if (pathRevision1.getRevision() == pathRevision2.getRevision()) { return 0; } return pathRevision1.getRevision() < pathRevision2.getRevision() ? 1 : -1; } });
public int compare(Object arg0, Object arg1) { SVNLocationEntry pathRevision1 = (SVNLocationEntry) arg0; SVNLocationEntry pathRevision2 = (SVNLocationEntry) arg1; if (pathRevision1.getRevision() == pathRevision2.getRevision()) { return 0; } return pathRevision1.getRevision() < pathRevision2.getRevision() ? 1 : -1; } });
public void handleLocationEntry(SVNLocationEntry locationEntry) { result.put(new Long(locationEntry.getRevision()), locationEntry); } });
public void handleLocationEntry(SVNLocationEntry locationEntry) { result.put(new Long(locationEntry.getRevision()), locationEntry); } });
public void handleLocationEntry(SVNLocationEntry locationEntry) { result.put(new Long(locationEntry.getRevision()), locationEntry); } });
public void handleLocationEntry(SVNLocationEntry locationEntry) { result.put(new Long(locationEntry.getRevision()), locationEntry); } });
public long getHistoryRevision() { return myHistory == null ? FSRepository.SVN_INVALID_REVNUM : myHistory.getHistoryEntry().getRevision(); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
private void checkGetLocations(@NotNull SVNRepository repo, @NotNull String path, long pegRev, long targetRev, @Nullable String expectedPath) throws SVNException { final List<String> paths = new ArrayList<>(); repo.getLocations(path, pegRev, new long[]{targetRev}, locationEntry -> { Assert.assertEquals(locationEntry.getRevision(), targetRev); paths.add(locationEntry.getPath()); }); if (expectedPath == null) { Assert.assertTrue(paths.isEmpty()); } else { Assert.assertEquals(paths.size(), 1); Assert.assertEquals(paths.get(0), expectedPath); } }
public static SVNLocationEntry findYoungestCopyroot(File reposRootDir, FSParentPath parPath) throws SVNException { SVNLocationEntry parentEntry = null; if (parPath.getParent() != null) { parentEntry = findYoungestCopyroot(reposRootDir, parPath.getParent()); } SVNLocationEntry myEntry = new SVNLocationEntry(parPath.getRevNode().getCopyRootRevision(), parPath.getRevNode().getCopyRootPath()); if (parentEntry != null) { if (myEntry.getRevision() >= parentEntry.getRevision()) { return myEntry; } return parentEntry; } return myEntry; }
public static SVNLocationEntry findYoungestCopyroot(File reposRootDir, FSParentPath parPath) throws SVNException { SVNLocationEntry parentEntry = null; if (parPath.getParent() != null) { parentEntry = findYoungestCopyroot(reposRootDir, parPath.getParent()); } SVNLocationEntry myEntry = new SVNLocationEntry(parPath.getRevNode().getCopyRootRevision(), parPath.getRevNode().getCopyRootPath()); if (parentEntry != null) { if (myEntry.getRevision() >= parentEntry.getRevision()) { return myEntry; } return parentEntry; } return myEntry; }
public static SVNLocationEntry findYoungestCopyroot(File reposRootDir, FSParentPath parPath) throws SVNException { SVNLocationEntry parentEntry = null; if (parPath.getParent() != null) { parentEntry = findYoungestCopyroot(reposRootDir, parPath.getParent()); } SVNLocationEntry myEntry = new SVNLocationEntry(parPath.getRevNode().getCopyRootRevision(), parPath.getRevNode().getCopyRootPath()); if (parentEntry != null) { if (myEntry.getRevision() >= parentEntry.getRevision()) { return myEntry; } return parentEntry; } return myEntry; }
public static SVNLocationEntry findYoungestCopyroot(File reposRootDir, FSParentPath parPath) throws SVNException { SVNLocationEntry parentEntry = null; if (parPath.getParent() != null) { parentEntry = findYoungestCopyroot(reposRootDir, parPath.getParent()); } SVNLocationEntry myEntry = new SVNLocationEntry(parPath.getRevNode().getCopyRootRevision(), parPath.getRevNode().getCopyRootPath()); if (parentEntry != null) { if (myEntry.getRevision() >= parentEntry.getRevision()) { return myEntry; } return parentEntry; } return myEntry; }
private SVNLocationEntry findRealBaseLocation(Node node) throws SVNException { if (node.myAction == SVNChangeEntry.TYPE_ADDED && node.myCopyFromPath != null && SVNRevision.isValidRevisionNumber(node.myCopyFromRevision)) { return new SVNLocationEntry(node.myCopyFromRevision, node.myCopyFromPath); } if (node.myParent != null) { SVNLocationEntry location = findRealBaseLocation(node.myParent); return new SVNLocationEntry(location.getRevision(), SVNPathUtil.getAbsolutePath(SVNPathUtil.append(location.getPath(), node.myName))); } return new SVNLocationEntry(-1, "/"); }
private SVNLocationEntry findRealBaseLocation(Node node) throws SVNException { if (node.myAction == SVNChangeEntry.TYPE_ADDED && node.myCopyFromPath != null && SVNRevision.isValidRevisionNumber(node.myCopyFromRevision)) { return new SVNLocationEntry(node.myCopyFromRevision, node.myCopyFromPath); } if (node.myParent != null) { SVNLocationEntry location = findRealBaseLocation(node.myParent); return new SVNLocationEntry(location.getRevision(), SVNPathUtil.getAbsolutePath(SVNPathUtil.append(location.getPath(), node.myName))); } return new SVNLocationEntry(-1, "/"); }
private SVNLocationEntry findRealBaseLocation(Node node) throws SVNException { if (node.myAction == SVNChangeEntry.TYPE_ADDED && node.myCopyFromPath != null && SVNRevision.isValidRevisionNumber(node.myCopyFromRevision)) { return new SVNLocationEntry(node.myCopyFromRevision, node.myCopyFromPath); } if (node.myParent != null) { SVNLocationEntry location = findRealBaseLocation(node.myParent); return new SVNLocationEntry(location.getRevision(), SVNPathUtil.getAbsolutePath(SVNPathUtil.append(location.getPath(), node.myName))); } return new SVNLocationEntry(-1, "/"); }