mirror of https://github.com/mongodb/mongo
SERVER-81949 Sync from 10gen/mongo to mongodb/mongo on v4.4 with copybara (#16114)
GitOrigin-RevId: 320e1ae154
This commit is contained in:
parent
e88e3415ed
commit
dd5dc7c93b
|
|
@ -62,7 +62,7 @@ def main():
|
||||||
|
|
||||||
docker_cmd = [
|
docker_cmd = [
|
||||||
"docker run", "-v ~/.ssh:/root/.ssh", "-v ~/mongodb-bot.gitconfig:/root/.gitconfig",
|
"docker run", "-v ~/.ssh:/root/.ssh", "-v ~/mongodb-bot.gitconfig:/root/.gitconfig",
|
||||||
f'-v "{current_dir}/copybara.staging.sky":/usr/src/app/copy.bara.sky',
|
f'-v "{current_dir}/copybara.sky":/usr/src/app/copy.bara.sky',
|
||||||
"-e COPYBARA_CONFIG='copy.bara.sky'", "-e COPYBARA_SUBCOMMAND='migrate'",
|
"-e COPYBARA_CONFIG='copy.bara.sky'", "-e COPYBARA_SUBCOMMAND='migrate'",
|
||||||
"-e COPYBARA_OPTIONS='-v'", "copybara copybara"
|
"-e COPYBARA_OPTIONS='-v'", "copybara copybara"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
# This configuration is for migrating code from one Git repository to another using Copybara.
|
||||||
|
# It selectively copies content, excluding specific paths and preserving authorship.
|
||||||
|
sourceUrl = "git@github.com:10gen/mongo.git"
|
||||||
|
destinationUrl = "git@github.com:mongodb/mongo.git"
|
||||||
|
|
||||||
|
core.workflow(
|
||||||
|
name = "default",
|
||||||
|
origin = git.origin(
|
||||||
|
url = sourceUrl,
|
||||||
|
ref = "v4.4",
|
||||||
|
# VersionSelector
|
||||||
|
),
|
||||||
|
destination = git.destination(
|
||||||
|
url = destinationUrl,
|
||||||
|
fetch = "v4.4",
|
||||||
|
push = "v4.4",
|
||||||
|
),
|
||||||
|
# Change path to the folder you want to publish publicly
|
||||||
|
origin_files = glob(["**"], exclude=["src/mongo/db/modules/**"]),
|
||||||
|
|
||||||
|
authoring = authoring.pass_thru("MongoDB <mongodb@mongodb.com>"),
|
||||||
|
|
||||||
|
mode = "ITERATIVE",
|
||||||
|
# Change the path here to the folder you want to publish publicly
|
||||||
|
# transformations = [
|
||||||
|
# core.move("path/to/folder/you/want/exported", ""),
|
||||||
|
# ],
|
||||||
|
)
|
||||||
Loading…
Reference in New Issue