private void tweakAnchorStatus(DirectoryInfo anchorInfo) { if (anchorInfo != null && (anchorInfo.myIsContentsChanged || anchorInfo.myIsPropertiesChanged)) { SVNStatusType text = anchorInfo.myIsContentsChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; SVNStatusType props = anchorInfo.myIsPropertiesChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; myAnchorStatus.setRemoteStatus(myDirectoryInfo.myURL, text, props, null, SVNNodeKind.DIR, myDirectoryInfo.myRemoteRevision, myDirectoryInfo.myRemoteDate, myDirectoryInfo.myRemoteAuthor); } }
private void tweakAnchorStatus(DirectoryInfo anchorInfo) { if (anchorInfo != null && (anchorInfo.myIsContentsChanged || anchorInfo.myIsPropertiesChanged)) { SVNStatusType text = anchorInfo.myIsContentsChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; SVNStatusType props = anchorInfo.myIsPropertiesChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; myAnchorStatus.setRemoteStatus(myDirectoryInfo.myURL, text, props, null, SVNNodeKind.DIR, myDirectoryInfo.myRemoteRevision, myDirectoryInfo.myRemoteDate, myDirectoryInfo.myRemoteAuthor); } }
private void tweakAnchorStatus(DirectoryInfo anchorInfo) { if (anchorInfo != null && (anchorInfo.myIsContentsChanged || anchorInfo.myIsPropertiesChanged)) { SVNStatusType text = anchorInfo.myIsContentsChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; SVNStatusType props = anchorInfo.myIsPropertiesChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; myAnchorStatus.setRemoteStatus(myDirectoryInfo.myURL, text, props, null, SVNNodeKind.DIR, myDirectoryInfo.myRemoteRevision, myDirectoryInfo.myRemoteDate, myDirectoryInfo.myRemoteAuthor); } }
private void tweakAnchorStatus(DirectoryInfo anchorInfo) { if (anchorInfo != null && (anchorInfo.myIsContentsChanged || anchorInfo.myIsPropertiesChanged)) { SVNStatusType text = anchorInfo.myIsContentsChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; SVNStatusType props = anchorInfo.myIsPropertiesChanged ? SVNStatusType.STATUS_MODIFIED : SVNStatusType.STATUS_NONE; myAnchorStatus.setRemoteStatus(myDirectoryInfo.myURL, text, props, null, SVNNodeKind.DIR, myDirectoryInfo.myRemoteRevision, myDirectoryInfo.myRemoteDate, myDirectoryInfo.myRemoteAuthor); } }
/** * Sets the item's remote status. Used by SVNKit internals and not * intended for users (from an API point of view). * * @param url item's repository URL * @param contents item's contents status type against the repository * @param props item's properties status type against the repository * @param lock item's lock in the repository * @param kind item's node kind * @param revision item's latest revision when it was last committed * @param date last item's committed date * @param author last item's committed author */ public void setRemoteStatus(SVNURL url, SVNStatusType contents, SVNStatusType props, SVNLock lock, SVNNodeKind kind, SVNRevision revision, Date date, String author) { setRemoteStatus(contents, props, lock, kind); myRemoteURL = url; myRemoteRevision = revision == null ? SVNRevision.UNDEFINED : revision; myRemoteDate = date; myRemoteAuthor = author; myRemoteKind = kind; }
/** * Sets the item's remote status. Used by SVNKit internals and not * intended for users (from an API point of view). * * @param url item's repository URL * @param contents item's contents status type against the repository * @param props item's properties status type against the repository * @param lock item's lock in the repository * @param kind item's node kind * @param revision item's latest revision when it was last committed * @param date last item's committed date * @param author last item's committed author */ public void setRemoteStatus(SVNURL url, SVNStatusType contents, SVNStatusType props, SVNLock lock, SVNNodeKind kind, SVNRevision revision, Date date, String author) { setRemoteStatus(contents, props, lock, kind); myRemoteURL = url; myRemoteRevision = revision == null ? SVNRevision.UNDEFINED : revision; myRemoteDate = date; myRemoteAuthor = author; myRemoteKind = kind; }
/** * Sets the item's remote status. Used by SVNKit internals and not * intended for users (from an API point of view). * * @param url item's repository URL * @param contents item's contents status type against the repository * @param props item's properties status type against the repository * @param lock item's lock in the repository * @param kind item's node kind * @param revision item's latest revision when it was last committed * @param date last item's committed date * @param author last item's committed author */ public void setRemoteStatus(SVNURL url, SVNStatusType contents, SVNStatusType props, SVNLock lock, SVNNodeKind kind, SVNRevision revision, Date date, String author) { setRemoteStatus(contents, props, lock, kind); myRemoteURL = url; myRemoteRevision = revision == null ? SVNRevision.UNDEFINED : revision; myRemoteDate = date; myRemoteAuthor = author; myRemoteKind = kind; }
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); }
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 void handleStatus(SVNStatus status) throws SVNException { if (deletedInRepository[0] && status.getEntry() != null) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } handler.handleStatus(status); } };
public void handleStatus(SVNStatus status) throws SVNException { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); getDefaultHandler().handleStatus(status); }
public void handleStatus(SVNStatus status) throws SVNException { if (deletedInRepository[0] && status.getEntry() != null) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (!SVNWCAccess.matchesChangeList(changeLists, status.getEntry())) { return; } handler.handleStatus(status); } };
public void handleStatus(SVNStatus status) throws SVNException { if (deletedInRepository[0] && status.getEntry() != null) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (!SVNWCAccess.matchesChangeList(changeLists, status.getEntry())) { return; } handler.handleStatus(status); } };
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)); } }
private void handleStatusHash(SVNEntry dirEntry, Map hash, boolean deleted, boolean descend) throws SVNException { ISVNStatusHandler handler = deleted ? this : getDefaultHandler(); for(Iterator paths = hash.keySet().iterator(); paths.hasNext();) { File path = (File) paths.next(); SVNStatus status = (SVNStatus) hash.get(path); if (getWCAccess().isMissing(path)) { status.setContentsStatus(SVNStatusType.STATUS_MISSING); } else if (descend && status.getEntry() != null && status.getKind() == SVNNodeKind.DIR) { SVNAdminArea dir = getWCAccess().retrieve(path); getDirStatus(dirEntry, dir, null, true, isReportAll(), isNoIgnore(), null, true, handler); } if (deleted) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (isSendableStatus(status)) { handler.handleStatus(status); } } }
private void handleStatusHash(SVNEntry dirEntry, Map hash, boolean deleted, SVNDepth depth) throws SVNException { ISVNStatusHandler handler = deleted ? this : getDefaultHandler(); for(Iterator paths = hash.keySet().iterator(); paths.hasNext();) { File path = (File) paths.next(); SVNStatus status = (SVNStatus) hash.get(path); if (status.getContentsStatus() != SVNStatusType.STATUS_OBSTRUCTED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING && status.getEntry() != null && status.getKind() == SVNNodeKind.DIR && (depth == SVNDepth.UNKNOWN || depth == SVNDepth.IMMEDIATES || depth == SVNDepth.INFINITY)) { SVNAdminArea dir = getWCAccess().retrieve(path); SVNDepth depthMinusOne = depth; if (depthMinusOne == SVNDepth.IMMEDIATES) { depthMinusOne = SVNDepth.EMPTY; } getDirStatus(dirEntry, dir, null, depthMinusOne, isReportAll(), isNoIgnore(), null, true, handler); } if (deleted) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (isSendableStatus(status)) { handler.handleStatus(status); } } }
private void handleStatusHash(SVNEntry dirEntry, Map hash, boolean deleted, SVNDepth depth) throws SVNException { ISVNStatusHandler handler = deleted ? this : getDefaultHandler(); for(Iterator paths = hash.keySet().iterator(); paths.hasNext();) { File path = (File) paths.next(); SVNStatus status = (SVNStatus) hash.get(path); if (status.getContentsStatus() != SVNStatusType.STATUS_OBSTRUCTED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING && status.getEntry() != null && status.getKind() == SVNNodeKind.DIR && (depth == SVNDepth.UNKNOWN || depth == SVNDepth.IMMEDIATES || depth == SVNDepth.INFINITY)) { SVNAdminArea dir = getWCAccess().retrieve(path); SVNDepth depthMinusOne = depth; if (depthMinusOne == SVNDepth.IMMEDIATES) { depthMinusOne = SVNDepth.EMPTY; } getDirStatus(dirEntry, dir, null, depthMinusOne, isReportAll(), isNoIgnore(), null, true, handler); } if (deleted) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (isSendableStatus(status)) { handler.handleStatus(status); } } }