private void tweakStatusHash(FileInfo fileInfo, File path, SVNStatusType text, SVNStatusType props, SVNLock lock) throws SVNException { Map hash = fileInfo.myParent.myChildrenStatuses; SVNStatus status = (SVNStatus) hash.get(fileInfo.myPath); if (status == null) { if (text != SVNStatusType.STATUS_ADDED) { return; } status = createStatus(path); hash.put(fileInfo.myPath, status); } if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED; } status.setRemoteStatus(fileInfo.myURL, text, props, lock, fileInfo.myRemoteKind, fileInfo.myRemoteRevision, fileInfo.myRemoteDate, fileInfo.myRemoteAuthor); }
private void tweakStatusHash(FileInfo fileInfo, File path, SVNStatusType text, SVNStatusType props, SVNLock lock) throws SVNException { Map hash = fileInfo.myParent.myChildrenStatuses; SVNStatus status = (SVNStatus) hash.get(fileInfo.myPath); if (status == null) { if (text != SVNStatusType.STATUS_ADDED) { return; } status = createStatus(path); hash.put(fileInfo.myPath, status); } if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED; } status.setRemoteStatus(fileInfo.myURL, text, props, lock, fileInfo.myRemoteKind, fileInfo.myRemoteRevision, fileInfo.myRemoteDate, fileInfo.myRemoteAuthor); }
private void tweakStatusHash(FileInfo fileInfo, File path, SVNStatusType text, SVNStatusType props, SVNLock lock) throws SVNException { Map hash = fileInfo.myParent.myChildrenStatuses; SVNStatus status = (SVNStatus) hash.get(fileInfo.myPath); if (status == null) { if (text != SVNStatusType.STATUS_ADDED) { return; } status = createStatus(path); hash.put(fileInfo.myPath, status); } if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED; } status.setRemoteStatus(fileInfo.myURL, text, props, lock, fileInfo.myRemoteKind, fileInfo.myRemoteRevision, fileInfo.myRemoteDate, fileInfo.myRemoteAuthor); }
public SVNStatusType getCombinedRemoteNodeAndContentsStatus() { int workingCopyFormat = getWorkingCopyFormat(); SVNStatusType remoteNodeStatus = getRemoteNodeStatus(); SVNStatusType remoteContentsStatus = getRemoteContentsStatus(); return combineRemoteNodeAndContentsStatus(workingCopyFormat, remoteNodeStatus, remoteContentsStatus); }
private void tweakStatusHash(DirectoryInfo dirInfo, DirectoryInfo childDir, File path, SVNStatusType text, SVNStatusType props, SVNLock lock, SVNRevision revision) throws SVNException { Map hash = dirInfo.myChildrenStatuses; SVNStatus status = (SVNStatus) hash.get(path); if (status == null) { if (text != SVNStatusType.STATUS_ADDED) { return; } status = createStatus(path); hash.put(path, status); } if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED; } if (text == SVNStatusType.STATUS_DELETED) { if (revision == SVNRevision.UNDEFINED) { revision = dirInfo.myRemoteRevision; } status.setRemoteStatus(dirInfo.myURL, text, props, lock, SVNNodeKind.NONE, revision, null, null); } else if (childDir == null) { status.setRemoteStatus(dirInfo.myURL, text, props, lock, dirInfo.myRemoteKind, dirInfo.myRemoteRevision, dirInfo.myRemoteDate, dirInfo.myRemoteAuthor); } else { status.setRemoteStatus(childDir.myURL, text, props, lock, childDir.myRemoteKind, childDir.myRemoteRevision, childDir.myRemoteDate, childDir.myRemoteAuthor); } }
private void tweakStatusHash(DirectoryInfo dirInfo, DirectoryInfo childDir, File path, SVNStatusType text, SVNStatusType props, SVNLock lock) throws SVNException { Map hash = dirInfo.myChildrenStatuses; SVNStatus status = (SVNStatus) hash.get(path); if (status == null) { if (text != SVNStatusType.STATUS_ADDED) { return; } status = createStatus(path); hash.put(path, status); } if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED; } if (text == SVNStatusType.STATUS_DELETED) { // remote kind is NONE because entry is deleted in repository. status.setRemoteStatus(dirInfo.myURL, text, props, lock, SVNNodeKind.NONE, null, null, null); } else if (childDir == null) { status.setRemoteStatus(dirInfo.myURL, text, props, lock, dirInfo.myRemoteKind, dirInfo.myRemoteRevision, dirInfo.myRemoteDate, dirInfo.myRemoteAuthor); } else { status.setRemoteStatus(childDir.myURL, text, props, lock, childDir.myRemoteKind, childDir.myRemoteRevision, childDir.myRemoteDate, childDir.myRemoteAuthor); } }
private void tweakStatusHash(DirectoryInfo dirInfo, DirectoryInfo childDir, File path, SVNStatusType text, SVNStatusType props, SVNLock lock, SVNRevision revision) throws SVNException { Map hash = dirInfo.myChildrenStatuses; SVNStatus status = (SVNStatus) hash.get(path); if (status == null) { if (text != SVNStatusType.STATUS_ADDED) { return; } status = createStatus(path); hash.put(path, status); } if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED; } if (text == SVNStatusType.STATUS_DELETED) { if (revision == SVNRevision.UNDEFINED) { revision = dirInfo.myRemoteRevision; } status.setRemoteStatus(dirInfo.myURL, text, props, lock, SVNNodeKind.NONE, revision, null, null); } else if (childDir == null) { status.setRemoteStatus(dirInfo.myURL, text, props, lock, dirInfo.myRemoteKind, dirInfo.myRemoteRevision, dirInfo.myRemoteDate, dirInfo.myRemoteAuthor); } else { status.setRemoteStatus(childDir.myURL, text, props, lock, childDir.myRemoteKind, childDir.myRemoteRevision, childDir.myRemoteDate, childDir.myRemoteAuthor); } }
private void tweakStatusHash(FileInfo fileInfo, File path, SVNStatusType text, SVNStatusType props, SVNLock lock) throws SVNException { Map hash = fileInfo.myParent.myChildrenStatuses; SVNStatus status = (SVNStatus) hash.get(fileInfo.myPath); if (status == null) { if (text != SVNStatusType.STATUS_ADDED) { return; } status = createStatus(path); hash.put(fileInfo.myPath, status); } if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED; } status.setRemoteStatus(fileInfo.myURL, text, props, lock, fileInfo.myRemoteKind, fileInfo.myRemoteRevision, fileInfo.myRemoteDate, fileInfo.myRemoteAuthor); status.setRepositoryRootURL(myRepositoryRoot); if (status.getRemoteURL() != null) { status.setRepositoryRelativePath(SVNURLUtil.getRelativeURL(myRepositoryRoot, status.getRemoteURL(), false)); } }
public void handleStatus(SVNStatus status) throws SVNException { countConflicts(status); String path = getSVNEnvironment().getRelativePath(status.getFile()); path = SVNCommandUtil.getLocalPath(path); if (status != null && status.getChangelistName() != null) { if (myStatusCache == null) { myStatusCache = new TreeMap(); } if (!myStatusCache.containsKey(status.getChangelistName())) { myStatusCache.put(status.getChangelistName(), new LinkedHashMap()); } ((Map) myStatusCache.get(status.getChangelistName())).put(path, status); return; } if (getSVNEnvironment().isXML()) { if (SVNStatusPrinter.combineStatus(status) == SVNStatusType.STATUS_NONE && status.getRemoteContentsStatus() == SVNStatusType.STATUS_NONE) { return; } StringBuffer xmlBuffer = printXMLStatus(status, path); getSVNEnvironment().getOut().print(xmlBuffer); } else { myStatusPrinter.printStatus(path, status, getSVNEnvironment().isVerbose() || getSVNEnvironment().isUpdate(), getSVNEnvironment().isVerbose(), getSVNEnvironment().isQuiet(), getSVNEnvironment().isUpdate()); } }
public void handleStatus(SVNStatus status) throws SVNException { countConflicts(status); String path = getSVNEnvironment().getRelativePath(status.getFile()); path = SVNCommandUtil.getLocalPath(path); if (status != null && status.getChangelistName() != null) { if (myStatusCache == null) { myStatusCache = new TreeMap(); } if (!myStatusCache.containsKey(status.getChangelistName())) { myStatusCache.put(status.getChangelistName(), new LinkedHashMap()); } ((Map) myStatusCache.get(status.getChangelistName())).put(path, status); return; } if (getSVNEnvironment().isXML()) { if (SVNStatusPrinter.combineStatus(status) == SVNStatusType.STATUS_NONE && status.getRemoteContentsStatus() == SVNStatusType.STATUS_NONE) { return; } StringBuffer xmlBuffer = printXMLStatus(status, path); getSVNEnvironment().getOut().print(xmlBuffer); } else { myStatusPrinter.printStatus(path, status, getSVNEnvironment().isVerbose() || getSVNEnvironment().isUpdate(), getSVNEnvironment().isVerbose(), getSVNEnvironment().isQuiet(), getSVNEnvironment().isUpdate()); } }
hash.put(path, status); if (text == SVNStatusType.STATUS_ADDED && status.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED) { text = SVNStatusType.STATUS_REPLACED;
SVNStatus dirStatus = (SVNStatus) parent.myChildrenStatuses.get(myDirectoryInfo.myPath); if (dirStatus != null && (dirStatus.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED || dirStatus.getRemoteContentsStatus() == SVNStatusType.STATUS_REPLACED)) { wasDeleted = true;
SVNStatus dirStatus = (SVNStatus) parent.myChildrenStatuses.get(myDirectoryInfo.myPath); if (dirStatus != null && (dirStatus.getRemoteContentsStatus() == SVNStatusType.STATUS_DELETED || dirStatus.getRemoteContentsStatus() == SVNStatusType.STATUS_REPLACED)) { wasDeleted = true;
return false; if (status.getRemoteContentsStatus() != SVNStatusType.STATUS_NONE) { return true;
return false; if (status.getRemoteContentsStatus() != SVNStatusType.STATUS_NONE) { return true;
return false; if (status.getRemoteContentsStatus() != SVNStatusType.STATUS_NONE) { return true;
return false; if (status.getRemoteContentsStatus() != SVNStatusType.STATUS_NONE) { return true;
if (status.getRemoteContentsStatus() != SVNStatusType.STATUS_NONE || status.getRemotePropertiesStatus() != SVNStatusType.STATUS_NONE || status.getRemoteLock() != null) { addAttribute(PROPS_ATTR, status.getRemotePropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getRemoteContentsStatus().toString()); openTag(REMOTE_STATUS_TAG); if (status.getRemoteLock() != null) {
if (status.getRemoteContentsStatus() != SVNStatusType.STATUS_NONE || status.getRemotePropertiesStatus() != SVNStatusType.STATUS_NONE || status.getRemoteLock() != null) { addAttribute(PROPS_ATTR, status.getRemotePropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getRemoteContentsStatus().toString()); openTag(REMOTE_STATUS_TAG); if (status.getRemoteLock() != null) {
result.setRepositoryTextStatus(status.getRemoteContentsStatus()); result.setRepositoryPropertiesStatus(status.getRemotePropertiesStatus());