From 2e52ff7fe8a6513567c6e466efe42896b147b081 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sun, 24 Mar 2002 00:05:49 +0000 Subject: [PATCH] Start to integraqte Alexandrias ChangeLog task into myrmidon git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271998 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/antlib/cvslib/RCSFile.java | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 proposal/myrmidon/src/java/org/apache/antlib/cvslib/RCSFile.java diff --git a/proposal/myrmidon/src/java/org/apache/antlib/cvslib/RCSFile.java b/proposal/myrmidon/src/java/org/apache/antlib/cvslib/RCSFile.java new file mode 100644 index 000000000..4bf28303d --- /dev/null +++ b/proposal/myrmidon/src/java/org/apache/antlib/cvslib/RCSFile.java @@ -0,0 +1,54 @@ +/* + * Copyright (C) The Apache Software Foundation. All rights reserved. + * + * This software is published under the terms of the Apache Software License + * version 1.1, a copy of which has been included with this distribution in + * the LICENSE.txt file. + */ +package org.apache.antlib.cvslib; + +/** + * Represents a RCS File cheange. + * + * @author Peter Donald + * @author Jeff Martin + * @version $Revision$ $Date$ + */ +class RCSFile +{ + private final String m_name; + private final String m_revision; + private String m_previousRevision; + + RCSFile( final String name, final String rev ) + { + this( name, rev, null ); + } + + RCSFile( final String name, + final String revision, + final String previousRevision ) + { + m_name = name; + m_revision = revision; + if( !revision.equals( previousRevision ) ) + { + m_previousRevision = previousRevision; + } + } + + String getName() + { + return m_name; + } + + String getRevision() + { + return m_revision; + } + + String getPreviousRevision() + { + return m_previousRevision; + } +}