aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-10-13 19:18:13 +0000
committerGravatar Yue Gan <yueg@google.com>2016-10-14 09:32:58 +0000
commit2c91836c8d4232f26a5b764ea91b7cdb47240b7e (patch)
tree0b1d6be682f727627d1b3cd305d351eed4b854a0 /src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
parent0c7a42a09d85ddffd9b860bcb31e4c43a00632c1 (diff)
*** Reason for rollback *** Causes our integration tests on Darwin to time out *** Original change description *** Make --watchfs a common command option. Adding an options parameter to DiffAwareness#getCurrentView seems like the simplest way to achieve that. Alternatives considered: 1. Making the diff awareness modules stateful. However, I did not want to do so as I've also been working on improving the module API to reduce state, or at least to have a proper lifecycle management for any necessary state. 2. Making the watchFs flag a constructor parameter. However, that would also invalidate any implement... *** -- MOS_MIGRATED_REVID=136070807
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java b/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
index 64c90338d0..f51cdfe281 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
@@ -15,8 +15,9 @@ package com.google.devtools.build.lib.skyframe;
import com.google.devtools.build.lib.vfs.ModifiedFileSet;
import com.google.devtools.build.lib.vfs.Path;
-import com.google.devtools.common.options.OptionsClassProvider;
+
import java.io.Closeable;
+
import javax.annotation.Nullable;
/**
@@ -54,7 +55,7 @@ public interface DiffAwareness extends Closeable {
* {@link DiffAwareness} instance. The {@link DiffAwareness} is expected to close itself in
* this case.
*/
- View getCurrentView(OptionsClassProvider options) throws BrokenDiffAwarenessException;
+ View getCurrentView() throws BrokenDiffAwarenessException;
/**
* Returns the set of files of interest that have been modified between the given two views.