Skip to content

New revision_mode = scm_folder for monorepos - #13562

Merged
memsharded merged 3 commits into
conan-io:release/2.0from
memsharded:experiment/revision_mode_scm_subfolder
May 4, 2023
Merged

memsharded merged 3 commits into
conan-io:release/2.0from
memsharded:experiment/revision_mode_scm_subfolder

Conversation

@memsharded

@memsharded memsharded commented Mar 29, 2023

Copy link
Copy Markdown
Member

Changelog: Feature: New revision_mode = "scm_folder" for mono-repo projects that want to use scm revisions.
Docs: conan-io/docs#3218

This is a preliminary experiment to discuss about conan-io/docs#3135

The revision_mode = "scm" doesn't work in mono-repo because it takes the root folder commit.
The current PR approach is broken, as it will take the folder commit when the conanfile.py is inside a subfolder (this layout is allowed)

@memsharded memsharded changed the title changing revision_mode=scm base folder New revision_mode = scm_folder for monorepos Apr 26, 2023
@memsharded
memsharded marked this pull request as ready for review April 26, 2023 18:44
pref2.revision)


class SCMRevisions(unittest.TestCase):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests were redundant, consolidated them in the above tests

@memsharded
memsharded merged commit e33561a into conan-io:release/2.0 May 4, 2023
@memsharded
memsharded deleted the experiment/revision_mode_scm_subfolder branch May 4, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants