-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a vcs module, with Git and Subversion support. #33
Open
tee3
wants to merge
19
commits into
bfgroup:main
Choose a base branch
from
tee3:develop-vcs-module
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This provides a mechanism to interact with VCS-controlled projects. It currently supports Git and Subversion. The main interesting feature here is a rule to generate a version string. There are other rules for querying a directory for its properties that may also prove generally useful. There are also rules to 'fetch' from a repository into a directory and 'checkout' a symbolic reference from a directory. These could be used to forcibly get a specific revision of a package from a repository. It could also be used to create a proper source package management system within Boost.Build. There are two examples to show how this module might be used. The documentation build has not been tested. However, a reStructuredText document that should be identical to the BoostBook file is included in the doc directory for reference. There are no tests, but there are two examples that do quite a bit of work to test the module, but do not verify the results. This has been tested on Linux, OS X, and Windows. The 'type' rule fails on Windows due to `path.exists' rule failing. This needs to be investigated. This does not implement these functions in Python. It should be straightforward to do so.
The BoostBook for the vcs module was missing several sections and had a few glaring mistakes.
This is clearer than using the literal section in these cases.
While this is not as portable as including the code directly, this matches the BoostBook documentation approach and makes ensuring that the reStructredText documentation is identical to the DocBook documentation.
This change makes it easier to see the rules provided by the vcs module.
Some of the syntax in the SHELL commands is not compatible with VMS.
This adds a test to test the functionality of all vcs functionality. * type * fetch * checkout, * ref * generate-version-string. This tests all backends. * Git * Subversion
This change fixes the GitHub URL for the Boost.Build project. The previous URL was correct except that it ceased to work for Subversion checkouts some time ago.
This change removes the assumption that the working copy has been checked out via a supported vcs. Using the actual location of the example/vcs directory in the example was not very useful and made running the example from the test harness impossible.
This change minimizes any confusion caused by unnecessary warnings.
This change ensures that stderr is not printed when an exact match, as expected, is not found. The stderr from git was confusing to users.
4 tasks
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
See boostorg/build#135
Types of changes
See boostorg/build#135
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
This stalled as it requires changes to the engine as described by @swatanabe in the original pull request. I am not sure if this is feasible or not.