|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.history.ExternalRepository
org.opensolaris.opengrok.history.MercurialRepository
public class MercurialRepository
Access to a Mercurial repository.
Constructor Summary | |
---|---|
MercurialRepository()
Creates a new instance of MercurialRepository |
|
MercurialRepository(java.lang.String directory)
Creates a new instance of MercurialRepository |
Method Summary | |
---|---|
Annotation |
annotate(java.io.File file,
java.lang.String revision)
Annotate the specified file/revision. |
boolean |
fileHasHistory(java.io.File file)
|
java.lang.String |
getCommand()
Get the name of the Mercurial command that should be used |
java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> |
getDirectoryHistoryParser()
|
java.io.InputStream |
getHistoryGet(java.lang.String parent,
java.lang.String basename,
java.lang.String rev)
Get an input stream that I may use to read a speciffic version of a named file. |
java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> |
getHistoryParser()
Get a parser capable of getting history log elements from this repository. |
boolean |
isCacheable()
Check whether the parsed history should be cached. |
boolean |
isVerbose()
Use verbose log messages, or just the summary |
void |
setCommand(java.lang.String command)
Set the name of the Mercurial command to use |
void |
setVerbose(boolean verbose)
Specify if verbose log messages or just the summary should be used |
boolean |
supportsAnnotation()
Checks whether this parser can annotate files. |
void |
update()
Update the content in this repository by pulling the changes from the upstream repository.. |
Methods inherited from class org.opensolaris.opengrok.history.ExternalRepository |
---|
getDirectoryName, setDirectoryName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MercurialRepository()
public MercurialRepository(java.lang.String directory)
directory
- The directory containing the .hg-subdirectoryMethod Detail |
---|
public void setCommand(java.lang.String command)
command
- the name of the command (hg)public java.lang.String getCommand()
public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose
- set to true if verbose messages should be usedpublic java.io.InputStream getHistoryGet(java.lang.String parent, java.lang.String basename, java.lang.String rev)
ExternalRepository
parent
- the name of the directory containing the filebasename
- the name of the file to getrev
- the revision to get
public java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getHistoryParser()
ExternalRepository
public java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getDirectoryHistoryParser()
public Annotation annotate(java.io.File file, java.lang.String revision) throws java.lang.Exception
file
- file to annotaterevision
- revision to annotate
java.lang.Exception
- if an error occurspublic boolean supportsAnnotation()
ExternalRepository
true
if annotation is supportedpublic boolean isCacheable()
ExternalRepository
true
if the history should be cachedpublic void update() throws java.lang.Exception
ExternalRepository
java.lang.Exception
- if an error occurs.public boolean fileHasHistory(java.io.File file)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |