|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jrcs.util.ToString
org.apache.commons.jrcs.rcs.Node
org.apache.commons.jrcs.rcs.TrunkNode
class TrunkNode
Represents a node on the trunk or main branch of a version control Archive.
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
Field Summary |
---|
Fields inherited from class org.apache.commons.jrcs.rcs.Node |
---|
author, branches, child, date, dateFormat, dateFormat2K, dateFormatter, endWithNewLine, locker, log, parent, phrases, rcsnext, state, text, version |
Constructor Summary | |
---|---|
TrunkNode(TrunkNode other)
Create a TrunkNode bu copying another TrunkNode. |
|
TrunkNode(Version vernum,
TrunkNode next)
Create a TrunkNode. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.commons.jrcs.rcs.Node |
---|
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 |
Methods inherited from class org.apache.commons.jrcs.util.ToString |
---|
arrayToString, arrayToString, stringToArray, stringToArraya, stringToArrayold, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
TrunkNode(TrunkNode other)
TrunkNode(Version vernum, TrunkNode next) throws InvalidTrunkVersionNumberException
InvalidTrunkVersionNumberException
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |