CVSEntry implements the concept of a CVS Entry. Traditionally,
a CVS Entry is a line in an 'Entries' file in a 'CVS' admin
directory. A CVSEntry represents a CVS file that is checked
in or being checked in.
CVSEntry objects contain all of the relavent information about
a CVS file, such as its name, check-out time, modification status,
local pathname, repository, etc.
version: $Revision: 2.11 $ author: Timothy Gerard Endres, time@ice.com. See Also:CVSClient See Also:CVSProject See Also:CVSEntryVector
addAllSubTreeEntries(CVSEntryVector vector) Adds all of the file entries in this directory entry, as well as every
file entry in every subdirectory entry recursively.
getFullPathName() This method was added when we finally decided to bite the
bullet and change the naming scheme to work "correctly".
This will return the same string as getFullName(), except
that the "./" prefix is removed.
getLocalPathName() This method was added when we finally decided to bite the
bullet and change the naming scheme to work "correctly".
This will return the same string as getLocalDirectory(),
except that the "./" prefix is removed.
setDirectoryEntryList(CVSEntryVector entryList) This method will make this entry a directory entry
and establish its entry list with the list passed
in the parameter.
setTimestamp(File entryFile) Set the timestamp of this entry to that of the modification
time of the file passed to this method.
NOTE There is an issue with timestamps between Java
and CVS.
Adds all of the file entries in this directory entry, as well as every
file entry in every subdirectory entry recursively.
Parameters: vector - The vector to add the file entries to.
addChildEventListener
public void addChildEventListener(ChildEventListener l)(Code)
This method was added when we finally decided to bite the
bullet and change the naming scheme to work "correctly".
This will return the same string as getFullName(), except
that the "./" prefix is removed. This is preferable for
building file path names, hence the name.
This method was added when we finally decided to bite the
bullet and change the naming scheme to work "correctly".
This will return the same string as getLocalDirectory(),
except that the "./" prefix is removed. This is preferable
for building file path names, hence the name.
This method will make this entry a directory entry
and establish its entry list with the list passed
in the parameter. This is the only means of making
a CVSEntry become a directory entry.
Parameters: entryList - The directory's entry list.
Set the timestamp of this entry to that of the modification
time of the file passed to this method.
NOTE There is an issue with timestamps between Java
and CVS. Specifically, Java time uses millisecond resolution
and CVS time uses second resolution. The problem arises when
a file is "sync-ed" with the CVS/Entries timestamp and the
file's modtime is stored with non-zero milliseconds. When we
later compare the file's modtime to that of the CVSEntry's
timestamp, they will differ by the milliseconds quantity.
To solve this problem, we strip milliseconds from any file
timestamp coming into jCVS. This forces all of the timestamps
to have zero millisecond digits, which will compare properly
with the CVS timestamps.