Example usage for org.apache.commons.jrcs.rcs Node isGhost

List of usage examples for org.apache.commons.jrcs.rcs Node isGhost

Introduction

In this page you can find the example usage for org.apache.commons.jrcs.rcs Node isGhost.

Prototype

public boolean isGhost() 

Source Link

Document

Returns true if the node is a "ghost" node.

Usage

From source file:org.opensolaris.opengrok.history.RCSHistoryParser.java

private void traverse(Node n, List<HistoryEntry> history) {
    if (n == null) {
        return;/*from   ww  w  . jav  a  2  s  .  c  o m*/
    }
    traverse(n.getChild(), history);
    TreeMap<?, ?> brt = n.getBranches();
    if (brt != null) {
        for (Iterator<?> i = brt.values().iterator(); i.hasNext();) {
            Node b = (Node) i.next();
            traverse(b, history);
        }
    }
    if (!n.isGhost()) {
        HistoryEntry entry = new HistoryEntry();
        entry.setRevision(n.getVersion().toString());
        entry.setDate(n.getDate());
        entry.setAuthor(n.getAuthor());
        entry.setMessage(n.getLog());
        entry.setActive(true);
        history.add(entry);
    }
}