Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified launchable/jar/exe_deploy.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,14 @@ public void transfer(Collection<ObjectId> advertised, Consumer<JSCommit> commitR
// and it drastically cuts down the initial commit consumption of a new large repository.
// ... except we do want to capture the head commit, as that makes it easier to spot integration problems
// when `record build` and `record commit` are separated.

// two RevFilters are order sensitive. This is because CommitTimeRevFilter.after doesn't return false to
// filter things out, it throws StopWalkException to terminate the walk, never giving a chance for the other
// branch of OR to be evaluated. So we need to put ObjectRevFilter first.
walk.setRevFilter(
OrRevFilter.create(
CommitTimeRevFilter.after(System.currentTimeMillis() - TimeUnit.DAYS.toMillis(maxDays)),
new ObjectRevFilter(headId)));
new ObjectRevFilter(headId),
CommitTimeRevFilter.after(System.currentTimeMillis() - TimeUnit.DAYS.toMillis(maxDays))));

for (ObjectId id : advertised) {
try {
Expand Down
Loading