Commits on Source (5)
-
Jürg Billeter authored
The queue shouldn't need to know about individual sources. This is in line with _track() and _get_consistency().
-
Jürg Billeter authored
-
Jürg Billeter authored
-
Jürg Billeter authored
Do not call fetch() for cached sources See merge request !992
-
Chandan Singh authored
Add a `_GitSourceBase` class to act as the base class for deriving source plugins that work with Git. The first user of this base class is the `git` source plugin that's in core at the moment. The contents of this base class is almost identical to the existing `GitSource` class. The two notable differences are: - the private methods now have leading underscores, as some were missing it originally - the name of the class Note that we are exposing a private member here as we expect it to move to a separate package soon. See the following discussion for more details: #739 (comment 124819869) Fixes #739.
Showing
- buildstream/__init__.py 5 additions, 0 deletionsbuildstream/__init__.py
- buildstream/_gitsourcebase.py 670 additions, 0 deletionsbuildstream/_gitsourcebase.py
- buildstream/_scheduler/queues/fetchqueue.py 1 addition, 4 deletionsbuildstream/_scheduler/queues/fetchqueue.py
- buildstream/element.py 14 additions, 0 deletionsbuildstream/element.py
- buildstream/plugins/sources/git.py 3 additions, 644 deletionsbuildstream/plugins/sources/git.py
- tests/sources/no-fetch-cached/files/file 1 addition, 0 deletionstests/sources/no-fetch-cached/files/file
- tests/sources/no-fetch-cached/plugins/sources/always_cached.py 45 additions, 0 deletions.../sources/no-fetch-cached/plugins/sources/always_cached.py
- tests/sources/no-fetch-cached/project.conf 8 additions, 0 deletionstests/sources/no-fetch-cached/project.conf
- tests/sources/no_fetch_cached.py 44 additions, 0 deletionstests/sources/no_fetch_cached.py
buildstream/_gitsourcebase.py
0 → 100644
This diff is collapsed.
This diff is collapsed.
tests/sources/no-fetch-cached/files/file
0 → 100644
tests/sources/no-fetch-cached/project.conf
0 → 100644
tests/sources/no_fetch_cached.py
0 → 100644