Commit Graph

6 Commits

Author SHA1 Message Date
Trevor Guidry b27023d431 SERVER-111300 Allow overrides through merge queue (#41664) (#41818)
GitOrigin-RevId: 61978f72d77c4909e7160a9f5352a785a81f078c
2025-09-29 16:24:32 +00:00
Daniel Moody 9c25013d4b SERVER-108844 add test and dry run to copybara sync script (#40388)
GitOrigin-RevId: 6059c57a9eada230f238b466c0e63435f704f2bd
2025-08-25 16:05:54 +00:00
Zack Winter 5f223c3ede SERVER-106150 Rewrite private links to public links when we sync source code from 10gen/mongo to mongodb/mongo (#37153)
GitOrigin-RevId: 25f69040178a8b6260cc44ab7fc0f5e576ee7faf
2025-06-12 18:23:51 +00:00
Kevin Pulo 2b23594852 SERVER-101171 Make copybara preserve Co-authored-by lines (#32756)
GitOrigin-RevId: 593f9c86851700c5415aaf25a84078d4136f9cbc
2025-04-09 23:05:49 +00:00
Mikhail Shchatko f9fdc7f82f SERVER-94187 Switch git ssh to https in copybara (#27049)
GitOrigin-RevId: 25a14df75380e62a0b451e1f3c7d37f59a946fff
2024-09-16 16:01:16 +00:00
Alexander Neben 73c2d9e977 SERVER-90928 Remove lines other than commit title from syncing (#22589)
# Issue

Remove lines other than commit title from syncing

# Description

SERVER-90928 Remove lines other than commit title from syncing to the
public repo

# Testing

This was tested locally. I tested on the commits in this PR and it seems
to be synced correctly. The staging file I used was
```
# This configuration is for migrating code from one Git repository to another using Copybara.
# It selectively copies content, excluding specific paths and preserving authorship.

# To test locally
sourceUrl = "/Users/alexander.neben/workspace/mongo2"
destinationUrl = "/Users/alexander.neben/workspace/mongodb-mongo"

# sourceUrl = "git@github.com:10gen/mongo.git"
# destinationUrl = "git@github.com:10gen/mongo-copybara.git"

core.workflow(
    name = "default",
    origin = git.origin(
        url = sourceUrl,
        ref = "IamXander/prune_commit",
    ),
    destination = git.destination(
        url = destinationUrl,
        fetch = "IamXander/prune_commit",
        push = "IamXander/prune_commit",
    ),
    # 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 = [
        metadata.scrubber("(^.*?)\n((\n|.)*)", replacement = "$1"),
    ],
)
```

Running git log on `/Users/alexander.neben/workspace/mongodb-mongo`
returns the following
```
commit 8a4879557893ae942f793ad707d56e255bebc72d (HEAD -> IamXander/prune_commit)
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Tue May 28 08:55:38 2024 -0700

    fixes

    GitOrigin-RevId: 3ffa6b95d44ec3fef7e715a3f24652966861f4e1

commit 66cdb3631be92ced2123c7e3fab39e24bed91b2b
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Tue May 28 08:50:07 2024 -0700

    SERVER-90928 Remove lines other than commit title from syncing

    GitOrigin-RevId: 7d90f0f69a17943fb68ba23e2f135d08c00c4943

commit 0063834a4fa519727cc6b816995ea56d9b3328fe
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Tue May 28 08:12:24 2024 -0700

    SERVER-XYZ asdasdkjfhaskdf akjdhkjashdkjashd example

    GitOrigin-RevId: 298831cd1d55319ea368fdd2f1dc604368d94889

commit fc7f29486d762a740c3ebe01c3b7d69a477abe75
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Fri May 24 13:55:21 2024 -0700

    prune commit message

    GitOrigin-RevId: 43692434bf664fe593ee7eb5f53372ca331ecec9
```

Which shows no data after the newline. It also does not include
enterprise code.

GitOrigin-RevId: f78828e412e3ac510c6e56feb541146c688b7603
2024-05-28 23:12:16 +00:00