Method Summary |
|
public void | add(String names) Add the given file to the CVS repository. |
public void | add(String names, String env) Add the given file to the CVS repository. |
public void | addRegexp(String regexp, String env) Add the file matching the given regular expression to the CVS
repository. |
public void | admin(String command) Perform a RCS request. |
protected void | cacheLoaded() This directory manager is being fetched from the cache. |
protected static synchronized void | cacheUnload() Remove a directory manager from the cache. |
protected synchronized void | checkDirectoryUse() This directory manager is about to be used for sub-directories. |
protected synchronized void | checkDirectoryUse(String subdir) This directory manager is about to be used for the given sub-directory. |
protected synchronized void | checkUse() This directory manager is about to be used, check it. |
protected synchronized void | checkUse(String filename) That file in the directory is about to be used, check its status. |
public void | commit(String names, String msg, String env) Commit pending actions on given file. |
public void | commit(String file, String msg, String env) Commit pending actions on given file. |
public void | commit(String names, String msg) Commit pending actions on given file. |
public void | commit(String file, String msg) Commit pending actions on given file. |
public void | commit(String msg) Commit pending actions to all that directory content. |
public void | commit(String msg, String env) Commit pending actions to all that directory content. |
public void | commitRegexp(String regexp, String comment, String env) Commit pending actions on files matching the given regular expression.
Parameters: regexp - The regular expresion. |
File | computeRepositoryDirectory(File dir) |
protected synchronized void | createDirectoryEntry(long timestamp, String name, int status) |
protected synchronized void | createFileEntry(long timestamp, String name, int status) |
public String | diff(String filename) Get the diff of given file against repository.
Parameters: filename - The name of the file to diff. |
public void | display(PrintStream prt) Display the status of the entries in that directory. |
public void | get(String path) |
protected String[] | getCvsDefaults() |
protected String[] | getCvsWrapper() |
public File | getDirectory() Get the directory controlled by this manager. |
protected CvsEntry | getDirectoryEntry(String filename) Look for a sub-directory entry. |
public int | getDirectoryStatus(String subdir) Get a sub-directory status.
Parameters: subdir - The name of the subdirectory. |
public int | getDirectoryStatus(String subdir, boolean update) Get a sub-directory status.
Parameters: subdir - The name of the subdirectory. Parameters: update - If true update all directory entries. |
protected CvsEntry | getFileEntry(String filename) Look for a file entry. |
public static synchronized CvsDirectory | getManager(File directory, Properties props, String cvspath, String cvsroot, String cvswrap) Get a CvsDirectory.
Parameters: directory - The CVS directory. Parameters: props - The cvs properties. Parameters: cvspath - The absolute path of the cvs program. Parameters: cvsroot - The absolute path of the CVS repository. |
public static CvsDirectory | getManager(File directory) Get a CvsDirectory. |
public static CvsDirectory | getManager(File directory, Properties props) Parameters: directory - The CVS directory. Parameters: props - The cvs properties. |
protected static CvsDirectory | getManager(CvsDirectory father, File dir) Parameters: father - The father CvsDirectory. Parameters: directory - The CVS directory. |
public LRUAble | getNext() LRU management - Get next node. |
public LRUAble | getPrev() LRU management - Get previous node. |
public Enumeration | listDirectories() List available sub-directories of that directory.
This method will list of possible directories. |
public Enumeration | listFiles() List all available file entries in that directory. |
public String | log(String filename) Get the log associated to the given file. |
public static void | main(String args) |
protected boolean | needsUpdate() |
public void | refresh() Refresh the file entries for that directory. |
protected void | refresh(String filename) Refresh the file entries for that filename. |
protected void | refreshRevision(String filename) Refresh the file entry revision number for that filename. |
protected void | refreshStatus(String filename) Refresh the file entry status for that filename. |
public void | remove(String names, String msg, String env) Remove the given file from the repository. |
protected void | removeFileEntry(String filename) |
public void | revert(String filename, String revision, String msg, String env) Revert the file, make the given revision the current one. |
public void | revert(String filename, OutputStream out, String revision, String env) Revert the file, make the given revision the current one.
- First remove the file
- perform a cvs update -p -r
Parameters: filename - The name of the file to revert. Parameters: revision - The revision number to get. Parameters: out - The output stream.
|
public String | revision(String filename) Get the revision number of the given file. |
public void | setNext(LRUAble next) LRU management - Set next node. |
public void | setPrev(LRUAble prev) LRU management - Set previous node. |
public int | status(String filename, boolean refresh) Get the status of a file entry. |
public int | status(String filename) Get the status of a file entry.
Parameters: filename - The file whose status is to be fetched. |
public static String | statusToString(int st) |
public String | stickyOptions(String filename) Get the Sticky Options of the given file. |
public void | update(String files) Update these files from the repository. |
public void | update(String file) Update this file from the repository. |
public void | update() Update all that directory's content. |
public void | updateDirectory(String subdir) Check out, or update a sub-directory. |
public void | updateRegexp(String regexp) Update thes files matching the given regular expression from the
repository. |
public static void | usage() |