Class SVNStatusEditor
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.SVNStatusEditor
-
- Direct Known Subclasses:
SVNRemoteStatusEditor
public class SVNStatusEditor extends java.lang.Object
- Version:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SVNStatusEditor.DefaultSVNStatusFileProvider
private static class
SVNStatusEditor.WrapperSVNStatusFileProvider
-
Field Summary
Fields Modifier and Type Field Description private SVNAdminAreaInfo
myAdminInfo
private ISVNStatusFileProvider
myDefaultFileProvider
private SVNDepth
myDepth
private java.util.Map
myExternalsMap
private ISVNStatusFileProvider
myFileProvider
private java.util.Collection
myGlobalIgnores
private boolean
myIsNoIgnore
private boolean
myIsReportAll
private java.util.Map
myRepositoryLocks
protected SVNURL
myRepositoryRoot
private ISVNStatusHandler
myStatusHandler
private long
myTargetRevision
private SVNWCAccess
myWCAccess
private java.lang.String
myWCRootPath
-
Constructor Summary
Constructors Constructor Description SVNStatusEditor(ISVNOptions options, SVNWCAccess wcAccess, SVNAdminAreaInfo info, boolean noIgnore, boolean reportAll, SVNDepth depth, ISVNStatusHandler handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SVNStatus
assembleStatus(java.io.File file, SVNAdminArea dir, SVNEntry entry, SVNEntry parentEntry, SVNNodeKind fileKind, boolean special, boolean reportAll, boolean isIgnored)
protected void
cleanup()
SVNCommitInfo
closeEdit()
protected SVNAdminAreaInfo
getAdminAreaInfo()
protected SVNAdminArea
getAnchor()
protected ISVNStatusHandler
getDefaultHandler()
protected SVNDepth
getDepth()
protected void
getDirStatus(SVNEntry parentEntry, SVNAdminArea dir, java.lang.String entryName, SVNDepth depth, boolean getAll, boolean noIgnore, java.util.Collection ignorePatterns, boolean skipThisDir, ISVNStatusHandler handler)
static java.util.Collection
getGlobalIgnores(ISVNOptions options)
static java.util.Collection
getIgnorePatterns(SVNAdminArea dir, java.util.Collection globalIgnores)
protected SVNLock
getLock(SVNURL url)
long
getTargetRevision()
protected SVNWCAccess
getWCAccess()
protected java.lang.String
getWCRootPath()
protected java.lang.String
getWCRootRelativePath(java.util.Collection ignorePatterns, java.io.File file)
private void
handleDirEntry(SVNAdminArea dir, java.lang.String entryName, SVNEntry dirEntry, SVNEntry entry, SVNNodeKind fileKind, boolean special, SVNDepth depth, boolean getAll, boolean noIgnore, ISVNStatusHandler handler)
protected boolean
hasTarget()
private boolean
isExternal(java.lang.String path)
static boolean
isIgnored(java.util.Collection patterns, java.io.File file)
static boolean
isIgnored(java.util.Collection patterns, java.io.File file, java.lang.String relativePath)
static boolean
isNameConflict(SVNEntry entry)
protected boolean
isNoIgnore()
protected boolean
isReportAll()
private void
sendUnversionedStatus(java.io.File file, java.lang.String name, SVNNodeKind fileType, boolean special, SVNAdminArea dir, java.util.Collection ignorePatterns, boolean noIgnore, ISVNStatusHandler handler)
void
setFileProvider(ISVNStatusFileProvider fileProvider)
void
setRepositoryInfo(SVNURL root, java.util.Map repositoryLocks)
void
targetRevision(long revision)
-
-
-
Field Detail
-
myWCAccess
private SVNWCAccess myWCAccess
-
myAdminInfo
private SVNAdminAreaInfo myAdminInfo
-
myIsReportAll
private boolean myIsReportAll
-
myIsNoIgnore
private boolean myIsNoIgnore
-
myDepth
private SVNDepth myDepth
-
myStatusHandler
private ISVNStatusHandler myStatusHandler
-
myExternalsMap
private java.util.Map myExternalsMap
-
myGlobalIgnores
private java.util.Collection myGlobalIgnores
-
myRepositoryRoot
protected SVNURL myRepositoryRoot
-
myRepositoryLocks
private java.util.Map myRepositoryLocks
-
myTargetRevision
private long myTargetRevision
-
myWCRootPath
private java.lang.String myWCRootPath
-
myFileProvider
private ISVNStatusFileProvider myFileProvider
-
myDefaultFileProvider
private ISVNStatusFileProvider myDefaultFileProvider
-
-
Constructor Detail
-
SVNStatusEditor
public SVNStatusEditor(ISVNOptions options, SVNWCAccess wcAccess, SVNAdminAreaInfo info, boolean noIgnore, boolean reportAll, SVNDepth depth, ISVNStatusHandler handler)
-
-
Method Detail
-
getTargetRevision
public long getTargetRevision()
-
targetRevision
public void targetRevision(long revision)
-
closeEdit
public SVNCommitInfo closeEdit() throws SVNException
- Throws:
SVNException
-
setRepositoryInfo
public void setRepositoryInfo(SVNURL root, java.util.Map repositoryLocks)
-
getDirStatus
protected void getDirStatus(SVNEntry parentEntry, SVNAdminArea dir, java.lang.String entryName, SVNDepth depth, boolean getAll, boolean noIgnore, java.util.Collection ignorePatterns, boolean skipThisDir, ISVNStatusHandler handler) throws SVNException
- Throws:
SVNException
-
isNameConflict
public static boolean isNameConflict(SVNEntry entry)
-
cleanup
protected void cleanup()
-
getAnchor
protected SVNAdminArea getAnchor()
-
getWCAccess
protected SVNWCAccess getWCAccess()
-
getDepth
protected SVNDepth getDepth()
-
isReportAll
protected boolean isReportAll()
-
isNoIgnore
protected boolean isNoIgnore()
-
getAdminAreaInfo
protected SVNAdminAreaInfo getAdminAreaInfo()
-
getDefaultHandler
protected ISVNStatusHandler getDefaultHandler()
-
hasTarget
protected boolean hasTarget()
-
handleDirEntry
private void handleDirEntry(SVNAdminArea dir, java.lang.String entryName, SVNEntry dirEntry, SVNEntry entry, SVNNodeKind fileKind, boolean special, SVNDepth depth, boolean getAll, boolean noIgnore, ISVNStatusHandler handler) throws SVNException
- Throws:
SVNException
-
sendUnversionedStatus
private void sendUnversionedStatus(java.io.File file, java.lang.String name, SVNNodeKind fileType, boolean special, SVNAdminArea dir, java.util.Collection ignorePatterns, boolean noIgnore, ISVNStatusHandler handler) throws SVNException
- Throws:
SVNException
-
assembleStatus
protected SVNStatus assembleStatus(java.io.File file, SVNAdminArea dir, SVNEntry entry, SVNEntry parentEntry, SVNNodeKind fileKind, boolean special, boolean reportAll, boolean isIgnored) throws SVNException
- Throws:
SVNException
-
getWCRootPath
protected java.lang.String getWCRootPath()
-
getWCRootRelativePath
protected java.lang.String getWCRootRelativePath(java.util.Collection ignorePatterns, java.io.File file)
-
isExternal
private boolean isExternal(java.lang.String path)
-
getIgnorePatterns
public static java.util.Collection getIgnorePatterns(SVNAdminArea dir, java.util.Collection globalIgnores) throws SVNException
- Throws:
SVNException
-
getGlobalIgnores
public static java.util.Collection getGlobalIgnores(ISVNOptions options)
-
isIgnored
public static boolean isIgnored(java.util.Collection patterns, java.io.File file)
-
isIgnored
public static boolean isIgnored(java.util.Collection patterns, java.io.File file, java.lang.String relativePath)
-
setFileProvider
public void setFileProvider(ISVNStatusFileProvider fileProvider)
-
-