def snapshot(self, scheduler=None):
    """
    Returns a Snapshot containing the sources, relative to the build root.

    This API is experimental, and subject to change.
    """
    if isinstance(self._sources, EagerFilesetWithSpec):
      snapshot = self._sources.snapshot
      if snapshot is not None:
        return snapshot
    input_pathglobs = PathGlobs(tuple(self.relative_to_buildroot()))
    return scheduler.product_request(Snapshot, [input_pathglobs])[0]
def snapshot ( self , scheduler = None ) : if isinstance ( self . _sources , EagerFilesetWithSpec ) : snapshot = self . _sources . snapshot if snapshot is not None : return snapshot input_pathglobs = PathGlobs ( tuple ( self . relative_to_buildroot ( ) ) ) return scheduler . product_request ( Snapshot , [ input_pathglobs ] ) [ 0 ]
Returns a Snapshot containing the sources, relative to the build root.

    This API is experimental, and subject to change.