Index: LogCommand.java =================================================================== RCS file: /cvs/javacvs/libsrc/org/netbeans/lib/cvsclient/command/log/LogCommand.java,v retrieving revision 1.26 diff -u -r1.26 LogCommand.java --- LogCommand.java 30 Jun 2006 20:17:17 -0000 1.26 +++ LogCommand.java 21 Sep 2007 02:13:20 -0000 @@ -57,6 +57,11 @@ private boolean noTags; /** + * Supress log output when no revisions are selected within a file + */ + private boolean suppressWhenNoRevisions; + + /** * Holds value of property revisionFilter. */ private String revisionFilter; @@ -119,6 +124,9 @@ if (noTags) { requests.add(1, new ArgumentRequest("-N")); //NOI18N } + if (suppressWhenNoRevisions) { + requests.add(1, new ArgumentRequest("-S")); //NOI18N + } if (userFilter != null) { requests.add(1, new ArgumentRequest("-w" + userFilter)); //NOI18N } @@ -222,6 +230,16 @@ this.noTags = noTags; } + public boolean isSuppressWhenNoRevisions() + { + return suppressWhenNoRevisions; + } + + public void setSuppressWhenNoRevisions(boolean suppressWhenNoRevisions) + { + this.suppressWhenNoRevisions = suppressWhenNoRevisions; + } + /** Getter for property revisionFilter, equals the command-line CVS switch "-r". * @return Value of property revisionFilter. */ @@ -320,6 +338,9 @@ else if (opt == 'N') { setNoTags(true); } + else if (opt == 'S') { + setSuppressWhenNoRevisions(true); + } else if (opt == 'd') { setDateFilter(optArg); } @@ -345,6 +366,7 @@ setHeaderOnly(false); setHeaderAndDescOnly(false); setNoTags(false); + setSuppressWhenNoRevisions(false); setDateFilter(null); setRevisionFilter(null); setStateFilter(null); @@ -375,6 +397,9 @@ } if (isNoTags()) { toReturn.append("-N "); //NOI18N + } + if (isSuppressWhenNoRevisions()) { + toReturn.append("-S "); //NOI18N } if (!isRecursive()) { toReturn.append("-l "); //NOI18N