SVNCommitPacket removeSkippedItems() { if (this == EMPTY) { return EMPTY; } Collection items = new ArrayList(); Map lockTokens = myLockTokens == null ? null : new HashMap(myLockTokens); for (int i = 0; myCommitItems != null && i < myCommitItems.length; i++) { SVNCommitItem commitItem = myCommitItems[i]; if (!myIsSkipped[i]) { items.add(commitItem); } else if (lockTokens != null) { lockTokens.remove(commitItem.getURL().toString()); } } SVNCommitItem[] filteredItems = (SVNCommitItem[]) items.toArray(new SVNCommitItem[items.size()]); return new SVNCommitPacket(null, filteredItems, lockTokens); }
SVNCommitPacket removeSkippedItems() { if (this == EMPTY) { return EMPTY; } Collection items = new ArrayList(); Map lockTokens = myLockTokens == null ? null : new SVNHashMap(myLockTokens); for (int i = 0; myCommitItems != null && i < myCommitItems.length; i++) { SVNCommitItem commitItem = myCommitItems[i]; if (!myIsSkipped[i]) { items.add(commitItem); } else if (lockTokens != null) { lockTokens.remove(commitItem.getURL().toString()); } } SVNCommitItem[] filteredItems = (SVNCommitItem[]) items.toArray(new SVNCommitItem[items.size()]); return new SVNCommitPacket(null, filteredItems, lockTokens); }
SVNCommitPacket removeSkippedItems() { if (this == EMPTY) { return EMPTY; } Collection items = new ArrayList(); Map lockTokens = myLockTokens == null ? null : new SVNHashMap(myLockTokens); for (int i = 0; myCommitItems != null && i < myCommitItems.length; i++) { SVNCommitItem commitItem = myCommitItems[i]; if (!myIsSkipped[i]) { items.add(commitItem); } else if (lockTokens != null) { lockTokens.remove(commitItem.getURL().toString()); } } SVNCommitItem[] filteredItems = (SVNCommitItem[]) items.toArray(new SVNCommitItem[items.size()]); return new SVNCommitPacket(null, filteredItems, lockTokens); }
public SVNCommitPacket removeSkippedItems() { if (this == EMPTY) { return EMPTY; } Collection items = new ArrayList(); Map lockTokens = getLockTokens() == null ? null : new SVNHashMap(getLockTokens()); SVNCommitItem[] filteredItems = filterSkippedItemsAndLockTokens(items, lockTokens); return new SVNCommitPacket(null, filteredItems, lockTokens); }
continue; packets.add(new SVNCommitPacket(wcAccess, commitItems, lockTokens)); } catch (SVNException e) { for (int j = 0; j < wcAccesses.length; j++) { Map lockTokens = (Map) locktokensMap.get(uuid); SVNCommitItem[] itemsArray = (SVNCommitItem[]) items.toArray(new SVNCommitItem[items.size()]); packetsArray[index++] = new SVNCommitPacket(null, itemsArray, lockTokens);
continue; packets.add(new SVNCommitPacket(wcAccess, commitItems, lockTokens)); } catch (SVNException e) { for (int j = 0; j < wcAccesses.length; j++) { Map lockTokens = (Map) locktokensMap.get(uuid); SVNCommitItem[] itemsArray = (SVNCommitItem[]) items.toArray(new SVNCommitItem[items.size()]); packetsArray[index++] = new SVNCommitPacket(null, itemsArray, lockTokens);
continue; packets.add(new SVNCommitPacket(wcAccess, commitItems, lockTokens)); } catch (SVNException e) { for (int j = 0; j < wcAccesses.length; j++) { Map lockTokens = (Map) locktokensMap.get(uuid); SVNCommitItem[] itemsArray = (SVNCommitItem[]) items.toArray(new SVNCommitItem[items.size()]); packetsArray[index++] = new SVNCommitPacket(null, itemsArray, lockTokens);
continue; packets.add(new SVNCommitPacket(wcAccess, commitItems, lockTokens)); } catch (SVNException e) { for (int j = 0; j < wcAccesses.length; j++) { Map lockTokens = (Map) locktokensMap.get(uuid); SVNCommitItem[] itemsArray = (SVNCommitItem[]) items.toArray(new SVNCommitItem[items.size()]); packetsArray[index++] = new SVNCommitPacket((SVNWCAccess)null, itemsArray, lockTokens);
return SVNCommitPacket.EMPTY; return new SVNCommitPacket(wcAccess, commitItems, lockTokens); } catch (SVNException e) { e.printStackTrace();
return SVNCommitPacket.EMPTY; return new SVNCommitPacket(wcAccess, commitItems, lockTokens); } catch (SVNException e) { wcAccess.close();
return SVNCommitPacket.EMPTY; return new SVNCommitPacket(wcAccess, commitItems, lockTokens); } catch (SVNException e) { wcAccess.close();
return SVNCommitPacket.EMPTY; return new SVNCommitPacket(wcAccess, commitItems, lockTokens); } catch (SVNException e) { wcAccess.close();