cvs commit: jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java BranchNode.java BranchNotFoundException.java HeadAlreadySetException.java InvalidBranchVersionNumberException.java InvalidFileFormatException.java InvalidTrunkVersionNumberException.java InvalidVersionNumberException.java KeywordsFormat.java Line.java Lines.java Node.java NodeNotFoundException.java Path.java Phrases.java RCSException.java TrunkNode.java Version.java

2003-10-13 Thread rdonkin
rdonkin 2003/10/13 00:59:46

  Modified:jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java
BranchNode.java BranchNotFoundException.java
HeadAlreadySetException.java
InvalidBranchVersionNumberException.java
InvalidFileFormatException.java
InvalidTrunkVersionNumberException.java
InvalidVersionNumberException.java
KeywordsFormat.java Line.java Lines.java Node.java
NodeNotFoundException.java Path.java Phrases.java
RCSException.java TrunkNode.java Version.java
  Log:
  Fixed typos in apache license
  
  Revision  ChangesPath
  1.9   +5 -5  
jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java
  
  Index: Archive.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Archive.java  26 May 2003 18:14:48 -  1.8
  +++ Archive.java  13 Oct 2003 07:59:46 -  1.9
  @@ -19,11 +19,11 @@
*distribution.
*
* 3. The end-user documentation included with the redistribution, if
  - *any, must include the following acknowlegement:
  + *any, must include the following acknowledgement:
*   This product includes software developed by the
*Apache Software Foundation (http://www.apache.org/).
  - *Alternately, this acknowlegement may appear in the software itself,
  - *if and wherever such third-party acknowlegements normally appear.
  + *Alternately, this acknowledgement may appear in the software itself,
  + *if and wherever such third-party acknowledgements normally appear.
*
* 4. The names The Jakarta Project, Commons, and Apache Software
*Foundation must not be used to endorse or promote products derived
  @@ -32,7 +32,7 @@
*
* 5. Products derived from this software may not be called Apache
*nor may Apache appear in their names without prior written
  - *permission of the Apache Group.
  + *permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  
  
  
  1.4   +5 -5  
jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/BranchNode.java
  
  Index: BranchNode.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/BranchNode.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BranchNode.java   6 May 2003 14:59:13 -   1.3
  +++ BranchNode.java   13 Oct 2003 07:59:46 -  1.4
  @@ -19,11 +19,11 @@
*distribution.
*
* 3. The end-user documentation included with the redistribution, if
  - *any, must include the following acknowlegement:
  + *any, must include the following acknowledgement:
*   This product includes software developed by the
*Apache Software Foundation (http://www.apache.org/).
  - *Alternately, this acknowlegement may appear in the software itself,
  - *if and wherever such third-party acknowlegements normally appear.
  + *Alternately, this acknowledgement may appear in the software itself,
  + *if and wherever such third-party acknowledgements normally appear.
*
* 4. The names The Jakarta Project, Commons, and Apache Software
*Foundation must not be used to endorse or promote products derived
  @@ -32,7 +32,7 @@
*
* 5. Products derived from this software may not be called Apache
*nor may Apache appear in their names without prior written
  - *permission of the Apache Group.
  + *permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  
  
  
  1.3   +4 -4  
jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/BranchNotFoundException.java
  
  Index: BranchNotFoundException.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/BranchNotFoundException.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BranchNotFoundException.java  6 May 2003 14:59:13 -   1.2
  +++ BranchNotFoundException.java  13 Oct 2003 07:59:46 -  1.3
  @@ -19,11 +19,11 @@
*distribution.
*
* 3. The end-user documentation included with the redistribution, if
  - *any, must include the following acknowlegement:
  

cvs commit: jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java Node.java

2002-12-21 Thread juanco
juanco  2002/12/21 08:49:26

  Modified:jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java
Node.java
  Log:
  Made methods in Node public so they can be used in and while traversing the
  archive tree.
  
  Added methods to retreive the description and the list of symbols of an
  archive.
  Submitted by: Mathew Sozeau [EMAIL PROTECTED]
  
  Revision  ChangesPath
  1.5   +21 -2 
jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java
  
  Index: Archive.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Archive.java  8 Nov 2002 21:29:34 -   1.4
  +++ Archive.java  21 Dec 2002 16:49:26 -  1.5
  @@ -364,6 +364,15 @@
   symbols.put(sym, vernum);
   }
   
  +/**
  + * Returns a Map of the symbols (tags) associated with each revision.
  + * The symbols are the keys and the revision numbers are the values.
  + * @return A map of symbol/revision number pairs.
  +public Map getSymbols()
  +{
  +return symbols;
  +}
  +
   
   /**
* Add a lock over a revison.
  @@ -1194,11 +1203,21 @@
   
   return (Node[]) result.toArray(new Node[result.size()]);
   }
  +
  +
  +/**
  + * Returns the description associated with the archive.
  + * @return the description
  + */
  +public String getDesc()
  +{
  +return desc;
  +}
   
   
   /** Returns the log message associated with the given revision.
*  @param version - the version to get the log message for
  - *   @return the log message for the version.
  + *  @return the log message for the version.
*  @exception - if the version does not exist for the archive.
*/
   public String getLog(Version version) 
  
  
  
  1.3   +39 -39
jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Node.java
  
  Index: Node.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Node.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Node.java 28 Sep 2002 15:57:11 -  1.2
  +++ Node.java 21 Dec 2002 16:49:26 -  1.3
  @@ -212,7 +212,7 @@
* Ghost nodes have no associated text ot deltas. CVS uses
* them to mark certain points in the node hierarchy.
*/
  -protected boolean isGhost()
  +public boolean isGhost()
   {
   return version.isGhost() || text == null;
   }
  @@ -224,7 +224,7 @@
* @return The branch node.
* @see BranchNode
*/
  -protected BranchNode getBranch(int no)
  +public BranchNode getBranch(int no)
   {
   if (branches == null)
   {
  @@ -246,7 +246,7 @@
* Return the root node of the node hierarchy.
* @return The root node.
*/
  -protected Node root()
  +public Node root()
   {
   Node result = this;
   while (result.parent != null)
  @@ -260,7 +260,7 @@
* Set the locker.
* @param user A symbol that identifies the locker.
*/
  -protected void setLocker(String user)
  +public void setLocker(String user)
   {
   locker = user.intern();
   }
  @@ -269,7 +269,7 @@
* Set the author of the node's revision.
* @param user A symbol that identifies the author.
*/
  -protected void setAuthor(String user)
  +public void setAuthor(String user)
   {
   author = user.intern();
   }
  @@ -283,7 +283,7 @@
* century.br
* The month is a number from 1 to 12.
*/
  -protected void setDate(int[] value)
  +public void setDate(int[] value)
   {
   this.date = new GregorianCalendar(value[0] + (value[0] = 99 ? 1900 : 0),
   value[1] - 1, value[2],
  @@ -295,7 +295,7 @@
* @param value A symbol that identifies the state. The most commonly
* used value is Exp.
*/
  -protected void setState(String value)
  +public void setState(String value)
   {
   state = value;
   }
  @@ -307,7 +307,7 @@
* points to the next revision.
* @param node The next node in the RCS logical hierarchy.
*/
  -protected void setRCSNext(Node node)
  +public void setRCSNext(Node node)
   {
   rcsnext = node;
   }
  @@ -317,7 +317,7 @@
* The log message is usually used to explain why the revision took place.
* @param value The message.
*/
  -protected void setLog(String value)
  +public void setLog(String value)
   {
 // the last newline belongs to the file format
   

cvs commit: jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java

2002-11-08 Thread juanco
juanco  2002/11/08 13:29:34

  Modified:jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java
  Log:
  Added method to retreive log message associated with a given revision.
  
  Submitted by:Kyrre Kristiansen [[EMAIL PROTECTED]]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  ChangesPath
  1.4   +30 -1 
jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java
  
  Index: Archive.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Archive.java  8 Oct 2002 19:06:24 -   1.3
  +++ Archive.java  8 Nov 2002 21:29:34 -   1.4
  @@ -1194,6 +1194,35 @@
   
   return (Node[]) result.toArray(new Node[result.size()]);
   }
  +
  +
  +/** Returns the log message associated with the given revision.
  + *  @param version - the version to get the log message for
  + *   @return the log message for the version.
  + *  @exception - if the version does not exist for the archive.
  + */
  +public String getLog(Version version) 
  +throws NodeNotFoundException
  +{
  +Node node = this.findNode(version);
  +if (node == null) 
  +{
  +throw new NodeNotFoundException(There's no version  + version);
  +}
  +return node.getLog();
  +}
  +
  +/** Returns the log message associated with the given revision.
  + *  @param version - the version to get the log message for
  + *   @return the log message for the version.
  + *  @exception - if the version does not exist for the archive.
  + */
  +public String getLog(String vernum) 
  +throws InvalidVersionNumberException, NodeNotFoundException
  +{
  +return getLog(new Version(vernum));
  +}
  +
   }
   
   
  
  
  

--
To unsubscribe, e-mail:   mailto:commons-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:commons-dev-help;jakarta.apache.org




cvs commit: jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java

2002-10-08 Thread juanco

juanco  2002/10/08 12:06:24

  Modified:jrcs/src/java/org/apache/commons/jrcs/rcs Archive.java
  Log:
  made public the Archive constructor that accepts an initial version number
  
  Revision  ChangesPath
  1.3   +2 -2  
jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java
  
  Index: Archive.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jrcs/src/java/org/apache/commons/jrcs/rcs/Archive.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Archive.java  28 Sep 2002 15:57:11 -  1.2
  +++ Archive.java  8 Oct 2002 19:06:24 -   1.3
  @@ -214,7 +214,7 @@
* @param desc   The archives description (not the log message).
* @param vernum The initial revision number.
*/
  -protected Archive(Object[] text, String desc, Version vernum)
  +public Archive(Object[] text, String desc, Version vernum)
   {
   // can only add a trunk version
   if (vernum.size()  2)
  
  
  

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]