public static void filterOutFileExternals(Collection explicitPaths, Map commitables, SVNWCAccess baseAccess) throws SVNException { for (Iterator items = commitables.values().iterator(); items.hasNext();) { baseAccess.checkCancelled(); SVNCommitItem item = (SVNCommitItem) items.next(); SVNEntry entry = baseAccess.getEntry(item.getFile(), false); if (entry != null && entry.isFile() && entry.getExternalFilePath() != null) { if (!explicitPaths.contains(item.getPath())) { items.remove(); } } } }
public static void filterOutFileExternals(Collection explicitPaths, Map commitables, SVNWCAccess baseAccess) throws SVNException { for (Iterator items = commitables.values().iterator(); items.hasNext();) { baseAccess.checkCancelled(); SVNCommitItem item = (SVNCommitItem) items.next(); SVNEntry entry = baseAccess.getEntry(item.getFile(), false); if (entry != null && entry.isFile() && entry.getExternalFilePath() != null) { if (!explicitPaths.contains(item.getPath())) { items.remove(); } } } }
final StringBuilder changes = new StringBuilder("Committed " + commit.getCommitItems().length + " changes: "); for (final SVNCommitItem item : commit.getCommitItems()) { changes.append(item.getKind() + " - " + item.getPath() + ", ");
final StringBuilder changes = new StringBuilder("Committed " + commit.getCommitItems().length + " changes: "); for (final SVNCommitItem item : commit.getCommitItems()) { changes.append(item.getKind() + " - " + item.getPath() + ", ");
public String getWorkspaceProperty(String path, String name) throws SVNException { SVNCommitItem item = (SVNCommitItem) myCommitItems.get(path); if (item == null) { return null; } SVNAdminArea dir; String target; SVNWCAccess wcAccess = item.getWCAccess(); if (item.getKind() == SVNNodeKind.DIR) { dir = wcAccess.retrieve(item.getFile()); target = ""; } else { dir = wcAccess.retrieve(item.getFile().getParentFile()); target = SVNPathUtil.tail(item.getPath()); } SVNVersionedProperties wcProps = dir.getWCProperties(target); return wcProps.getPropertyValue(name); }
public SVNPropertyValue getWorkspaceProperty(String path, String name) throws SVNException { SVNCommitItem item = (SVNCommitItem) myCommitItems.get(path); if (item == null) { return null; } SVNAdminArea dir; String target; SVNWCAccess wcAccess = item.getWCAccess(); if (item.getKind() == SVNNodeKind.DIR) { dir = wcAccess.retrieve(item.getFile()); target = ""; } else { dir = wcAccess.retrieve(item.getFile().getParentFile()); target = SVNPathUtil.tail(item.getPath()); } SVNVersionedProperties wcProps = dir.getWCProperties(target); if (wcProps != null) { return wcProps.getPropertyValue(name); } return null; }
public SVNPropertyValue getWorkspaceProperty(String path, String name) throws SVNException { SVNCommitItem item = (SVNCommitItem) myCommitItems.get(path); if (item == null) { return null; } SVNAdminArea dir; String target; SVNWCAccess wcAccess = item.getWCAccess(); if (item.getKind() == SVNNodeKind.DIR) { dir = wcAccess.retrieve(item.getFile()); target = ""; } else { dir = wcAccess.retrieve(item.getFile().getParentFile()); target = SVNPathUtil.tail(item.getPath()); } SVNVersionedProperties wcProps = dir.getWCProperties(target); if (wcProps != null) { return wcProps.getPropertyValue(name); } return null; }
public SVNPropertyValue getWorkspaceProperty(String path, String name) throws SVNException { SVNCommitItem item = (SVNCommitItem) myCommitItems.get(path); if (item == null) { return null; } SVNAdminArea dir; String target; SVNWCAccess wcAccess = item.getWCAccess(); if (item.getKind() == SVNNodeKind.DIR) { dir = wcAccess.retrieve(item.getFile()); target = ""; } else { dir = wcAccess.retrieve(item.getFile().getParentFile()); target = SVNPathUtil.tail(item.getPath()); } SVNVersionedProperties wcProps = dir.getWCProperties(target); if (wcProps != null) { return wcProps.getPropertyValue(name); } return null; }
} else { dir = wcAccess.retrieve(item.getFile().getParentFile()); name = SVNPathUtil.tail(item.getPath());
} else { dir = wcAccess.retrieve(item.getFile().getParentFile()); name = SVNPathUtil.tail(item.getPath());
} else { dir = wcAccess.retrieve(item.getFile().getParentFile()); name = SVNPathUtil.tail(item.getPath());
} else { dir = wcAccess.retrieve(item.getFile().getParentFile()); name = SVNPathUtil.tail(item.getPath());
String name = SVNPathUtil.tail(item.getPath()); SVNEntry entry = dir.getEntry(name, false);
stateFlag += CommitItemStateFlags.IsCopy; items[i] = new CommitItem(sc.getPath(), getNodeKind(sc.getKind()), stateFlag, sc.getURL() != null ? sc.getURL().toString() : null, sc.getCopyFromURL() != null ? sc.getCopyFromURL().toString() : null, sc.getRevision().getNumber());