1 18 package org.apache.tools.ant.taskdefs.cvslib; 19 20 24 class RCSFile { 25 private String name; 26 private String revision; 27 private String previousRevision; 28 29 30 RCSFile(final String name, final String rev) { 31 this(name, rev, null); 32 } 33 34 35 RCSFile(final String name, 36 final String revision, 37 final String previousRevision) { 38 this.name = name; 39 this.revision = revision; 40 if (!revision.equals(previousRevision)) { 41 this.previousRevision = previousRevision; 42 } 43 } 44 45 49 String getName() { 50 return name; 51 } 52 53 57 String getRevision() { 58 return revision; 59 } 60 61 65 String getPreviousRevision() { 66 return previousRevision; 67 } 68 } 69 70 | Popular Tags |