Package org.tigris.subversion.javahl
Class Info2
java.lang.Object
org.tigris.subversion.javahl.Info2
- All Implemented Interfaces:
Serializable
this class is returned by SVNClientInterface.info2 and contains information
about items in the repository or working copy
- Since:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The name of the changelist.private String
the checksum of the itemprivate String
if the item is in conflict, the filename of the last repository version fileprivate String
if the item is in conflict, the filename of the base version fileprivate String
if the item is in conflict, the filename of the working copy version fileprivate long
if the item was copied, the source revprivate String
if the item was copied, the source urlprivate int
The depth of the item.private boolean
the flag if the remaining fields are setprivate int
the item kinds (see NodeKind)private String
the author of the last changeprivate long
the date of the last change in nsprivate long
the revision of the last changeprivate Lock
the information about any lock (may be null)private String
the path of the itemprivate String
the property reject fileprivate long
the last time the properties of the items were changed in nsprivate String
the root URL of the repositoryprivate long
The size of the file in the repository (untranslated, e.g.private String
the UUID of the repositoryprivate long
the revision of the itemprivate int
the scheduled operation at next commit (see ScheduleKind)private static final long
private long
the last time the item was changed in nsprivate ConflictDescriptor
Info on any tree conflict of which this node is a victim.private String
the url of the itemprivate long
The size of the file after being translated into its local representation, or-1
if unknown. -
Constructor Summary
ConstructorsConstructorDescriptionInfo2
(String path, String url, long rev, int kind, String reposRootUrl, String reposUUID, long lastChangedRev, long lastChangedDate, String lastChangedAuthor, Lock lock, boolean hasWcInfo, int schedule, String copyFromUrl, long copyFromRev, long textTime, long propTime, String checksum, String conflictOld, String conflictNew, String conflictWrk, String prejfile, String changelistName, long workingSize, long reposSize, int depth, ConflictDescriptor treeConflict) constructor to build the object by native code.A backward-compat constructor. -
Method Summary
Modifier and TypeMethodDescriptionreturn the checksum of the itemprivate static String
getChecksumDigest
(Checksum checksum) return if the item is in conflict, the filename of the last repository version fileprivate static String
getConflictNew
(Set<ConflictDescriptor> conflicts) return if the item is in conflict, the filename of the base version fileprivate static String
getConflictOld
(Set<ConflictDescriptor> conflicts) return if the item is in conflict, the filename of the working copy version fileprivate static String
getConflictWrk
(Set<ConflictDescriptor> conflicts) long
return if the item was copied, the source revreturn if the item was copied, the source urlint
getDepth()
int
getKind()
return the item kinds (see NodeKind)return the author of the last changereturn the date of the last changelong
return the revision of the last changegetLock()
return the information about any lock (may be null)getPath()
return the path of the itemreturn the property reject fileprivate static String
getPrejfile
(Set<ConflictDescriptor> conflicts) return the last time the properties of the items were changedreturn the root URL of the repositorylong
return the UUID of the repositorylong
getRev()
return the revision of the itemint
return the scheduled operation at next commit (see ScheduleKind)return the last time the item was changedprivate static ConflictDescriptor
getTreeConflict
(Set<ConflictDescriptor> conflicts) getUrl()
return the url of the itemlong
boolean
return the flag if the working copy fields are settoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
path
the path of the item -
url
the url of the item -
rev
private long revthe revision of the item -
kind
private int kindthe item kinds (see NodeKind) -
reposRootUrl
the root URL of the repository -
reposUUID
the UUID of the repository -
lastChangedRev
private long lastChangedRevthe revision of the last change -
lastChangedDate
private long lastChangedDatethe date of the last change in ns -
lastChangedAuthor
the author of the last change -
lock
the information about any lock (may be null) -
hasWcInfo
private boolean hasWcInfothe flag if the remaining fields are set -
schedule
private int schedulethe scheduled operation at next commit (see ScheduleKind) -
copyFromUrl
if the item was copied, the source url -
copyFromRev
private long copyFromRevif the item was copied, the source rev -
textTime
private long textTimethe last time the item was changed in ns -
propTime
private long propTimethe last time the properties of the items were changed in ns -
checksum
the checksum of the item -
conflictOld
if the item is in conflict, the filename of the base version file -
conflictNew
if the item is in conflict, the filename of the last repository version file -
conflictWrk
if the item is in conflict, the filename of the working copy version file -
prejfile
the property reject file -
changelistName
The name of the changelist.- Since:
- 1.5
-
workingSize
private long workingSizeThe size of the file after being translated into its local representation, or-1
if unknown. Not applicable for directories.- Since:
- 1.5
-
reposSize
private long reposSizeThe size of the file in the repository (untranslated, e.g. without adjustment of line endings and keyword expansion). Only applicable for file -- not directory -- URLs. For working copy paths, size will be-1
.- Since:
- New in 1.5.
-
depth
private int depthThe depth of the item.- Since:
- 1.6
-
treeConflict
Info on any tree conflict of which this node is a victim.- Since:
- 1.6
-
-
Constructor Details
-
Info2
Info2(String path, String url, long rev, int kind, String reposRootUrl, String reposUUID, long lastChangedRev, long lastChangedDate, String lastChangedAuthor, Lock lock, boolean hasWcInfo, int schedule, String copyFromUrl, long copyFromRev, long textTime, long propTime, String checksum, String conflictOld, String conflictNew, String conflictWrk, String prejfile, String changelistName, long workingSize, long reposSize, int depth, ConflictDescriptor treeConflict) constructor to build the object by native code. See fields for parameters- Parameters:
path
-url
-rev
-kind
-reposRootUrl
-reposUUID
-lastChangedRev
-lastChangedDate
-lastChangedAuthor
-lock
-hasWcInfo
-schedule
-copyFromUrl
-copyFromRev
-textTime
-propTime
-checksum
-conflictOld
-conflictNew
-conflictWrk
-prejfile
-depth
-treeConflict
-
-
Info2
A backward-compat constructor.
-
-
Method Details
-
getConflictOld
-
getConflictNew
-
getConflictWrk
-
getPrejfile
-
getTreeConflict
-
getChecksumDigest
-
getPath
return the path of the item -
getUrl
return the url of the item -
getRev
public long getRev()return the revision of the item -
getKind
public int getKind()return the item kinds (see NodeKind) -
getReposRootUrl
return the root URL of the repository -
getReposUUID
return the UUID of the repository -
getLastChangedRev
public long getLastChangedRev()return the revision of the last change -
getLastChangedDate
return the date of the last change -
getLastChangedAuthor
return the author of the last change -
getLock
return the information about any lock (may be null) -
isHasWcInfo
public boolean isHasWcInfo()return the flag if the working copy fields are set -
getSchedule
public int getSchedule()return the scheduled operation at next commit (see ScheduleKind) -
getCopyFromUrl
return if the item was copied, the source url -
getCopyFromRev
public long getCopyFromRev()return if the item was copied, the source rev -
getTextTime
return the last time the item was changed -
getPropTime
return the last time the properties of the items were changed -
getChecksum
return the checksum of the item -
getConflictOld
return if the item is in conflict, the filename of the base version file -
getConflictNew
return if the item is in conflict, the filename of the last repository version file -
getConflictWrk
return if the item is in conflict, the filename of the working copy version file -
getPrejfile
return the property reject file -
getChangelistName
- Returns:
- The name of the changelist.
- Since:
- 1.5
-
getWorkingSize
public long getWorkingSize()- Returns:
- The size of the file after being translated into its
local representation, or
-1
if unknown. Not applicable for directories. - Since:
- 1.5
-
getReposSize
public long getReposSize()- Returns:
- The size of the file in the repository (untranslated,
e.g. without adjustment of line endings and keyword
expansion). Only applicable for file -- not directory -- URLs.
For working copy paths, size will be
-1
. - Since:
- New in 1.5.
-
getDepth
public int getDepth()- Returns:
- The depth of the directory or
null
if the item is a file. - Since:
- New in 1.5.
-
getConflictDescriptor
- Returns:
- the tree conflict of which this node is a victim, or null if none
- Since:
- New in 1.6.
-
toString
-