Skip to content

Commit dd3fb3f

Browse files
committed
filename should be the last argument of Mercurial history executor
1 parent 03ea0a0 commit dd3fb3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/org/opensolaris/opengrok/history/MercurialRepository.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,17 @@ Executor getHistoryLogExecutor(File file, String sinceRevision)
195195
cmd.add("--follow");
196196
}
197197

198-
if (!filename.isEmpty()) {
199-
cmd.add(filename);
200-
}
201-
202198
cmd.add("--template");
203199
if (file.isDirectory()) {
204200
cmd.add(env.isHandleHistoryOfRenamedFiles() ? DIR_TEMPLATE_RENAMED : DIR_TEMPLATE);
205201
} else {
206202
cmd.add(FILE_TEMPLATE);
207203
}
208204

205+
if (!filename.isEmpty()) {
206+
cmd.add(filename);
207+
}
208+
209209
return new Executor(cmd, new File(directoryName), sinceRevision != null);
210210
}
211211

0 commit comments

Comments
 (0)