org.tmatesoft.svn.core.wc
Interface ISVNAnnotateHandler
- SVNXMLAnnotateHandler
public interface ISVNAnnotateHandler
The
ISVNAnnotateHandler interface should be implemented to be further
provided to
SVNLogClient's
doAnnotate() methods for processing
annotation information per each text line.
Here's an example code snippet:
import org.tmatesoft.svn.core.wc.ISVNAnnotateHandler;
import org.tmatesoft.svn.core.wc.SVNLogClient;
...
SVNLogClient logClient;
...
logClient.doAnnotate(new File("path/to/WC/file"), SVNRevision.HEAD, SVNRevision.create(0),
SVNRevision.HEAD, new ISVNAnnotateHandler(){
public void handleLine(Date date, long revision,
String author, String line){
System.out.println(revision +
" " +
author +
" " +
date +
" " +
line);
}
});
...
void | handleLine(Date date, long revision, String author, String line)- Handles per line annotation information - that is information about
who last committed (changed) this line, the revision and timestamp when it was last
committed.
|
handleLine
public void handleLine(Date date,
long revision,
String author,
String line)
throws SVNException Handles per line annotation information - that is information about
who last committed (changed) this line, the revision and timestamp when it was last
committed.
date - the time moment when changes to line were commited
to the repositoryrevision - the revision the changes were commited toauthor - the person who did those changesline - a text line of the target file (on which
doAnnotate()
was invoked)
Copyright © 2004-2006 TMate Software Ltd. All Rights Reserved.