Lines 85-90
Link Here
|
85 |
|
85 |
|
86 |
/** Holds value of property forUsers. */ |
86 |
/** Holds value of property forUsers. */ |
87 |
private String[] forUsers; |
87 |
private String[] forUsers; |
|
|
88 |
|
89 |
/** Holds value of property reportOnRepository. */ |
90 |
private String[] reportOnRepository; |
88 |
|
91 |
|
89 |
/** |
92 |
/** |
90 |
* Construct a new history command |
93 |
* Construct a new history command |
Lines 138-143
Link Here
|
138 |
addStringArrayArgument(requests, getReportLastEventForModule(), "-n"); //NOI18N |
141 |
addStringArrayArgument(requests, getReportLastEventForModule(), "-n"); //NOI18N |
139 |
addStringArrayArgument(requests, getReportOnModule(), "-m"); //NOI18N |
142 |
addStringArrayArgument(requests, getReportOnModule(), "-m"); //NOI18N |
140 |
addStringArrayArgument(requests, getLastEventForFile(), "-f"); //NOI18N |
143 |
addStringArrayArgument(requests, getLastEventForFile(), "-f"); //NOI18N |
|
|
144 |
addStringArrayArgument(requests, getReportOnRepository(), "-p"); //NOI18N |
141 |
if (!isReportCheckouts() && !isReportCommits() && !isReportTags() && |
145 |
if (!isReportCheckouts() && !isReportCommits() && !isReportTags() && |
142 |
!isReportEverything() && getReportEventType() == null && getReportOnModule() == null) { |
146 |
!isReportEverything() && getReportEventType() == null && getReportOnModule() == null) { |
143 |
// this is the default switch if nothing else is specified. |
147 |
// this is the default switch if nothing else is specified. |
Lines 257-262
Link Here
|
257 |
else if (opt == 'u') { |
261 |
else if (opt == 'u') { |
258 |
addForUsers(optArg); |
262 |
addForUsers(optArg); |
259 |
} |
263 |
} |
|
|
264 |
else if (opt == 'p') { |
265 |
addReportOnRepository(optArg); |
266 |
} |
260 |
else { |
267 |
else { |
261 |
return false; |
268 |
return false; |
262 |
} |
269 |
} |
Lines 267-273
Link Here
|
267 |
* String returned by this method defines which options are available for this particular command |
274 |
* String returned by this method defines which options are available for this particular command |
268 |
*/ |
275 |
*/ |
269 |
public String getOptString() { |
276 |
public String getOptString() { |
270 |
return "ab:cD:ef:lm:n:or:Tt:u:wx:z:"; //NOI18N |
277 |
return "ab:cD:ef:lm:n:op:r:Tt:u:wx:z:"; //NOI18N |
271 |
} |
278 |
} |
272 |
|
279 |
|
273 |
/** |
280 |
/** |
Lines 338-343
Link Here
|
338 |
if (getReportOnModule() != null) { |
345 |
if (getReportOnModule() != null) { |
339 |
appendArrayToSwitches(toReturn, getReportOnModule(), "-m "); //NOI18N |
346 |
appendArrayToSwitches(toReturn, getReportOnModule(), "-m "); //NOI18N |
340 |
} |
347 |
} |
|
|
348 |
if (getReportOnRepository() != null) { |
349 |
appendArrayToSwitches(toReturn, getReportOnRepository(), "-p "); //NOI18N |
350 |
} |
341 |
if (getShowBackToRecordContaining() != null) { |
351 |
if (getShowBackToRecordContaining() != null) { |
342 |
toReturn.append("-b "); //NOI18N |
352 |
toReturn.append("-b "); //NOI18N |
343 |
toReturn.append(getShowBackToRecordContaining()); |
353 |
toReturn.append(getShowBackToRecordContaining()); |
Lines 614-619
Link Here
|
614 |
this.reportLastEventForModule = addNewValue(this.reportLastEventForModule, newModule); |
624 |
this.reportLastEventForModule = addNewValue(this.reportLastEventForModule, newModule); |
615 |
} |
625 |
} |
616 |
|
626 |
|
|
|
627 |
public void addForUsers(String forUser) { |
628 |
this.forUsers = addNewValue(this.forUsers, forUser); |
629 |
} |
630 |
|
617 |
/** Getter for property forUsers. (cvs switch -u) |
631 |
/** Getter for property forUsers. (cvs switch -u) |
618 |
* @return Value of property forUsers. |
632 |
* @return Value of property forUsers. |
619 |
*/ |
633 |
*/ |
Lines 628-635
Link Here
|
628 |
this.forUsers = forUsers; |
642 |
this.forUsers = forUsers; |
629 |
} |
643 |
} |
630 |
|
644 |
|
631 |
public void addForUsers(String forUser) { |
645 |
public void addReportOnRepository(String repository) { |
632 |
this.forUsers = addNewValue(this.forUsers, forUser); |
646 |
this.reportOnRepository = addNewValue(this.reportOnRepository, repository); |
|
|
647 |
} |
648 |
|
649 |
/** Getter for property reportOnRepository. (cvs switch -p) |
650 |
* @return Value of property reportOnRepository. |
651 |
*/ |
652 |
public String[] getReportOnRepository() { |
653 |
return this.reportOnRepository; |
654 |
} |
655 |
|
656 |
/** Setter for property reportOnRepository. (cvs switch -p) |
657 |
* @param reportOnRepository New value of property reportOnRepository. |
658 |
*/ |
659 |
public void setReportOnRepository(String[] reportOnRepository) { |
660 |
this.reportOnRepository = reportOnRepository; |
633 |
} |
661 |
} |
634 |
|
662 |
|
635 |
private String[] addNewValue(String[] arr, String newVal) { |
663 |
private String[] addNewValue(String[] arr, String newVal) { |