CvsTagEntrypublic class CvsTagEntry extends Object Holds the information of a line of rdiff |
Fields Summary |
---|
private String | filenamethe filename | private String | prevRevisionthe previous revision | private String | revisionthe revision |
Constructors Summary |
---|
public CvsTagEntry(String filename)Creates a new CvsTagEntry
this(filename, null, null);
| public CvsTagEntry(String filename, String revision)Creates a new CvsTagEntry
this(filename, revision, null);
| public CvsTagEntry(String filename, String revision, String prevRevision)Creates a new CvsTagEntry
this.filename = filename;
this.revision = revision;
this.prevRevision = prevRevision;
|
Methods Summary |
---|
public java.lang.String | getFile()Gets the filename for this CvsTagEntry
return filename;
| public java.lang.String | getPreviousRevision()Gets the previous revision for this CvsTagEntry
return prevRevision;
| public java.lang.String | getRevision()Gets the revision for this CvsTagEntry
return revision;
| public java.lang.String | toString()Gets a String containing filename and difference from previous version
StringBuffer buffer = new StringBuffer();
buffer.append(filename);
if ((revision == null)) {
buffer.append(" was removed");
if (prevRevision != null) {
buffer.append("; previous revision was ").append(prevRevision);
}
} else if (revision != null && prevRevision == null) {
buffer.append(" is new; current revision is ")
.append(revision);
} else if (revision != null && prevRevision != null) {
buffer.append(" has changed from ")
.append(prevRevision).append(" to ").append(revision);
}
return buffer.toString();
|
|