reposProps.put(diffName, diff.get(diffName)); diff = computePropsDiff(originalProps, reposProps);
} else { originalProps = dir.getProperties(fileName).asMap(); myCurrentFile.myPropertyDiff = computePropsDiff(originalProps, reposProperties);
private void reportAddedFile(SVNDirectoryInfo info, String path, SVNEntry entry) throws SVNException { if (entry.isCopied()) { if (myIsCompareToBase) { return; } reportModifiedFile(info, entry); return; } SVNAdminArea dir = retrieve(info.myPath); String name = SVNPathUtil.tail(path); Map wcProps = null; if (myIsCompareToBase) { wcProps = dir.getBaseProperties(name).asMap(); } else { wcProps = dir.getProperties(name).asMap(); } String mimeType = (String) wcProps.get(SVNProperty.MIME_TYPE); Map propDiff = computePropsDiff(new HashMap(), wcProps); File sourceFile; if (myIsCompareToBase) { sourceFile = dir.getBaseFile(name, false); } else { sourceFile = detranslateFile(dir, name); } getDiffCallback().fileAdded(path, null, sourceFile, 0, entry.getRevision(), null, mimeType, null, propDiff); }
private void reportAddedDir(SVNDirectoryInfo info) throws SVNException { SVNAdminArea dir = retrieve(info.myPath); Map wcProps; if (myIsCompareToBase) { wcProps = dir.getBaseProperties(dir.getThisDirName()).asMap(); } else { wcProps = dir.getProperties(dir.getThisDirName()).asMap(); } Map propDiff = computePropsDiff(new HashMap(), wcProps); if (!propDiff.isEmpty()) { getDiffCallback().propertiesChanged(info.myPath, null, propDiff); } for(Iterator entries = dir.entries(false); entries.hasNext();) { SVNEntry entry = (SVNEntry) entries.next(); if (dir.getThisDirName().equals(entry.getName())) { continue; } if (!myIsCompareToBase && entry.isScheduledForDeletion()) { continue; } if (entry.isFile()) { reportAddedFile(info, SVNPathUtil.append(info.myPath, entry.getName()), entry); } else if (entry.isDirectory() && myIsRecursive) { SVNDirectoryInfo childInfo = createDirInfo(info, SVNPathUtil.append(info.myPath, entry.getName()), false); reportAddedDir(childInfo); } } }
SVNProperties baseProps = dir.getBaseProperties(dir.getThisDirName()).asMap(); SVNProperties reposProps = applyPropChanges(baseProps, myCurrentDirectory.myPropertyDiff); diff = computePropsDiff(originalProps, reposProps);
SVNProperties baseProps = dir.getBaseProperties(dir.getThisDirName()).asMap(); SVNProperties reposProps = applyPropChanges(baseProps, myCurrentDirectory.myPropertyDiff); diff = computePropsDiff(originalProps, reposProps);
SVNProperties baseProps = dir.getBaseProperties(dir.getThisDirName()).asMap(); SVNProperties reposProps = applyPropChanges(baseProps, myCurrentDirectory.myPropertyDiff); diff = computePropsDiff(originalProps, reposProps);
wcProps = dir.getProperties(dir.getThisDirName()).asMap(); SVNProperties propDiff = computePropsDiff(new SVNProperties(), wcProps); if (!propDiff.isEmpty()) { getDiffCallback().propertiesChanged(info.myPath, null, propDiff, null);
wcProps = dir.getProperties(dir.getThisDirName()).asMap(); SVNProperties propDiff = computePropsDiff(new SVNProperties(), wcProps); if (!propDiff.isEmpty()) { getDiffCallback().propertiesChanged(info.myPath, null, propDiff, null);
wcProps = dir.getProperties(dir.getThisDirName()).asMap(); SVNProperties propDiff = computePropsDiff(new SVNProperties(), wcProps); if (!propDiff.isEmpty()) { getDiffCallback().propertiesChanged(info.myPath, null, propDiff, null);
SVNProperties propDiff = computePropsDiff(new SVNProperties(), wcProps);
SVNProperties propDiff = computePropsDiff(new SVNProperties(), wcProps);
SVNProperties propDiff = computePropsDiff(new SVNProperties(), wcProps);
if (modified) { baseProps = dir.getBaseProperties(fileName).asMap(); propDiff = computePropsDiff(baseProps, dir.getProperties(fileName).asMap()); } else { propDiff = new HashMap();
} else { originalProps = dir.getProperties(fileName).asMap(); myCurrentFile.myPropertyDiff = computePropsDiff(originalProps, reposProperties);
} else { originalProps = dir.getProperties(fileName).asMap(); myCurrentFile.myPropertyDiff = computePropsDiff(originalProps, reposProperties);
} else { originalProps = dir.getProperties(fileName).asMap(); myCurrentFile.myPropertyDiff = computePropsDiff(originalProps, reposProperties);
boolean modified = dir.hasPropModifications(fileName); if (modified) { propDiff = computePropsDiff(baseProps, dir.getProperties(fileName).asMap()); } else { propDiff = new SVNProperties();
if (modified) { baseProps = dir.getBaseProperties(fileName).asMap(); propDiff = computePropsDiff(baseProps, dir.getProperties(fileName).asMap()); } else { propDiff = new SVNProperties();
boolean modified = dir.hasPropModifications(fileName); if (modified) { propDiff = computePropsDiff(baseProps, dir.getProperties(fileName).asMap()); } else { propDiff = new SVNProperties();