Skip to content

Commit 082c787

Browse files
committed
rename
1 parent 08e2f55 commit 082c787

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/CVSHistoryParser.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private enum ParseState {
4848
}
4949

5050
private History history;
51-
private CVSRepository cvsrepo = new CVSRepository();
51+
private CVSRepository cvsRepository = new CVSRepository();
5252

5353
/**
5454
* Process the output from the log command and insert the HistoryEntries
@@ -132,7 +132,7 @@ private void parseDateAuthor(HistoryEntry entry, String s) throws IOException {
132132
if ("date".equals(key)) {
133133
try {
134134
val = val.replace('/', '-');
135-
entry.setDate(cvsrepo.parse(val));
135+
entry.setDate(cvsRepository.parse(val));
136136
} catch (ParseException pe) {
137137
//
138138
// Overriding processStream() thus need to comply with the
@@ -181,13 +181,13 @@ static void sortHistoryEntries(History history) {
181181
* Parse the history for the specified file.
182182
*
183183
* @param file the file to parse history for
184-
* @param repos Pointer to the SubversionRepository
184+
* @param repository Pointer to the SubversionRepository
185185
* @return object representing the file's history
186186
*/
187-
History parse(File file, Repository repos) throws HistoryException {
188-
cvsrepo = (CVSRepository) repos;
187+
History parse(File file, Repository repository) throws HistoryException {
188+
cvsRepository = (CVSRepository) repository;
189189
try {
190-
Executor executor = cvsrepo.getHistoryLogExecutor(file);
190+
Executor executor = cvsRepository.getHistoryLogExecutor(file);
191191
int status = executor.exec(true, this);
192192

193193
if (status != 0) {
@@ -202,7 +202,7 @@ History parse(File file, Repository repos) throws HistoryException {
202202
// In case there is a branch, the log entries can be returned in
203203
// unsorted order (as a result of using '-r1.1:branch' for 'cvs log')
204204
// so they need to be sorted according to revision.
205-
if (cvsrepo.getBranch() != null && !cvsrepo.getBranch().isEmpty()) {
205+
if (cvsRepository.getBranch() != null && !cvsRepository.getBranch().isEmpty()) {
206206
sortHistoryEntries(history);
207207
}
208208

0 commit comments

Comments
 (0)