/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Trond Norbye. All rights reserved.
* Use is subject to license terms.
*/
/**
* Collect all information of a given revision
*
* @author Trond Norbye
*/
public class HistoryEntry {
@SuppressWarnings("PMD.AvoidStringBufferField")
private boolean active;
/** Creates a new instance of HistoryEntry */
public HistoryEntry() {
message = new StringBuffer();
}
/**
* Convinience constructor to create a more or less fully populated entry.
* @param revision revision ID of the changeset.
* @param oldRevision revision ID of the changeset in the non-hybrid repo.
* Use {@code null} if not available.
* @param date change timestamp
* @param author the authors name and email-address (if available).
* @param message the changeset description.
* @param active Use {@code true} to indicate, that this entry is
* fully populated and thus usable by other consumers.
*/
{
this.oldRevision = oldRevision;
}
}
public void dump() {
return;
}
separator = ">";
}
separator = "=";
separator = ">";
}
separator = "=";
separator = ">";
}
}
return author;
}
}
}
return revision;
}
/**
* <p>Get the revision of this changeset in the non-hybrid repository.</p>
* repository into a mercurial repository and this entry belongs to a
* mercurial repository - this method returns the svn based revision number,
* whereby {@link #getRevision()} returns the mercurial revision number.
*</p>
* @return {@code null} if not available (e.g. if this is not a hybrid
* repo), the non-hybrid revision number otherwise.
* @see #setOldRevision()
*/
return oldRevision;
}
}
} else {
}
}
public boolean isActive() {
return active;
}
}
}
}
/**
* Set the revision of this changeset in the non-hybrid repository.
* @param revision revision to set.
* @see #getOldRevision()
*/
this.oldRevision = revision;
}
}
}
return files;
}
}
return getLine();
}
}
}
return changeRequests;
}
this.changeRequests = changeRequests;
}
/**
* Remove "unneeded" info such as multiline history and files list
*/
public void strip() {
}
}