class TrunkNode extends Node
A TrunkNode
stores the deltas between the node's
revision and the previous revision;
that is, when the deltas are applied to the current revision, the
text of the previous revision is obtained.
The rcsnext
field of a TrunkNode
points to the node corresponding to the previous revision.
Node
,
Archive
author, branches, child, date, dateFormat, dateFormat2K, dateFormatter, endWithNewLine, locker, log, parent, phrases, rcsnext, state, text, version
Constructor and Description |
---|
TrunkNode(TrunkNode other)
Create a TrunkNode bu copying another TrunkNode.
|
TrunkNode(Version vernum,
TrunkNode next)
Create a TrunkNode.
|
Modifier and Type | Method and Description |
---|---|
Node |
deltaRevision()
Returns the Node with the version number that corresponds to
the revision to be obtained after the deltas in the current node
are applied.
|
(package private) void |
newpatch0(java.util.List original,
Node root) |
Node |
nextInPathTo(Version vernum,
boolean soft)
Returns the next node in the path from the current node to the node
identified by the given version.
|
protected void |
patch0(java.util.List original,
boolean annotate)
Provide the initial patch.
|
void |
setRCSNext(Node node)
Set the next node in the RCS logical hierarcy.
|
addBranch, compareTo, getAuthor, getBranch, getBranches, getChild, getDate, getLocker, getLog, getParent, getPhrases, getRCSNext, getState, getText, getTextLines, getTextLines, getTextLines, getTextLines, getVersion, isGhost, newBranchVersion, newNode, newNode, newpatch, nextVersion, patch, patch, pathTo, pathTo, root, setAuthor, setDate, setLocker, setLog, setState, setText, setText, toString, toString, toText, toText
arrayToString, arrayToString, stringToArray, stringToArraya, stringToArrayold, toString
TrunkNode(TrunkNode other)
TrunkNode(Version vernum, TrunkNode next) throws InvalidTrunkVersionNumberException
public void setRCSNext(Node node)
setRCSNext
in class Node
node
- The next node in the RCS logical hierarchy.public Node deltaRevision()
Node
For a BranchNode
the deltaRevision is the
current revision; that is, after the deltas are applied, the text for
the current revision is obtained.
For a TrunkNode
the deltaRevision is the
next revision; that is, after the deltas are applied, the text obtained
corresponds to the next revision in the chain.
deltaRevision
in class Node
public Node nextInPathTo(Version vernum, boolean soft) throws NodeNotFoundException
Node
nextInPathTo
in class Node
vernum
- The version number of the last node in the path.soft
- If true, no error is thrown if a node with the given
version doesn't exist. Use soft=true to find a apth to where a new
node should be added.NodeNotFoundException
- if a node with the given version number
is not reachable following the RCS-next chain from this node.
If soft=false the exception is also thrown if a node with the given
version number doesn't exist.Path
protected void patch0(java.util.List original, boolean annotate) throws InvalidFileFormatException, NodeNotFoundException, PatchFailedException
original
- Where to add the patch to.annotate
- True if the lines should be annotated with version numbers.InvalidFileFormatException
NodeNotFoundException
PatchFailedException
void newpatch0(java.util.List original, Node root)
Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs