Skip to content

Tags: google/copybara

Tags

v20260615

Toggle v20260615's commit message
Scrub credentials in CredentialFileHandler logs

Also changed the log level for unmatched credential lines from WARNING
to INFO, as it is expected to have unmatched lines when the credentials
file contains entries for multiple repositories. Improved the log message
to be clearer.

Added unit tests to verify scrubbing of credentials with different usernames.

NO_BUG: No bug specified
GWSQ_IGNORES: chriscampos@google.com
PiperOrigin-RevId: 930724211
Change-Id: Ibbba6be17bb1eecb278eea351c0dc368d71704aa

v20260608

Toggle v20260608's commit message
Improve patch folder name inference.

Previously, we inferred the QUILT_PATCHES variable, which determines the name of the "patches" folder in Quilt, as the entire folder path present in the "series" parameter, except the final "/series". However, this causes issues if the "series" parameter contains nested paths, as Quilt's output path in the working directory would now be linked to this input path in the config file system. With this change, only the last folder name is parsed, not the entire path. Regardless of the input folder depth (e.g. `someFolder/patchesFolderName/series`), the Quilt output will be in `checkoutDirectory/directory/patchesFolderName/series` and it's up the config/user to move all content in the root of the checkoutDirectory to other directories matching the config location like `someFolder`, if desired.

Also fixed a bug with using an empty patches folder name, e.g. just `series` that caused the output to still create a `patches` folder anyway, as QUILT_PATCHES being an empty string caused quilt to fall back to its default. Explicitly used `.` as the folder name for this case.

Also shifted the additional argument validation happening during folder parsing into one central location at the beginning.

Also updated documentation to explain the path handling better, and made the `series` file name requirement an explicit validation check.

BUG: 481299219
GWSQ_IGNORES: mschlaffer@google.com
PiperOrigin-RevId: 923374892
Change-Id: I605a15594cf2aa31d0c6c8ddcb8f04a6c51ff411

v20260601

Toggle v20260601's commit message
Allow customization of patch validation.

Allows authors to control patch validation strictness through the patch transformation definition. Generalizes the idea of the --patch-validate-on-load parameter to Starlark, and makes --patch-validate-on-load a CLI override mechanism with no default anymore. Effective default validation behavior is unchanged to before.

patch.quilt_apply also exits early if no series or patches could be found and validation is bypassed, ensuring no superfluous quilt setup is done in this case. refactored the code a bit to achieve this in a readable way.

Also cleaned up code a bit: used multiline string literals where appropriate, used newlines consistently for unit test structure.

BUG: 475203147
GWSQ_IGNORES: mschlaffer@google.com
PiperOrigin-RevId: 917910800
Change-Id: Id32281e12399613f6c859ef4862fd70ed279893b

v20260525

Toggle v20260525's commit message
GitHub paginated get returns 1000 items

BUG=397993186
GWSQ_IGNORES: linjordan@google.com
PiperOrigin-RevId: 918492853
Change-Id: I1ed3aed8a9d2c8859cd3cc157a7d65b246f44bac

v20260518

Toggle v20260518's commit message
Refactor URI reformatting code.

BUG=507065676
GWSQ_IGNORES: vcarbonaro@google.com
PiperOrigin-RevId: 910880325
Change-Id: I2fc9db452568aa46f75ded620e0bd985c365fb7a

v20260511

Toggle v20260511's commit message
Allow QuiltTransformation to run on existing patches folders

The QuiltTransformation now warns instead of failing if a 'patches' directory already exists in the destination. It will overwrite the 'series' file and any patch files being imported, while preserving other files in the 'patches' directory. This allows for re-running the transformation without manual cleanup. It also allows it to run in-place for after-move transforms.

BUG=481299219
GWSQ_IGNORES: no-reply@google.com
PiperOrigin-RevId: 906331061
Change-Id: I8885f5aef3c192f5ae096b4cca538740d03bfedd

v20260504

Toggle v20260504's commit message
Move GitHub API URL determination to GitHubIdentifier.

BUG=493888279
GWSQ_IGNORES: vcarbonaro@google.com
PiperOrigin-RevId: 907715047
Change-Id: I8a02061539cfdd4264f63dab24fe087aa3ecaeb2

v20260427

Toggle v20260427's commit message
Add retry logic to Gerrit change lookup before submitting.

When submitting a Gerrit change, Copybara will now retry querying Gerrit for the change ID up to 3 times with exponential backoff (1s, 2s) if the change is not found immediately. This addresses issues where Gerrit might not immediately return the change after it has been pushed.

BUG=472404588
GWSQ_IGNORES: no-reply@google.com
PiperOrigin-RevId: 904563462
Change-Id: I06235cb8030d6d2c30cb387eee6751f136958ea7

v20260420

Toggle v20260420's commit message
Add EnumMapConverter class for enum->String value flags

BUG=499007054
GWSQ_IGNORES: chriscampos@google.com
PiperOrigin-RevId: 894221083
Change-Id: Id96f87257516f2028d7512ad5ec9900d947fbd92

v20260413

Toggle v20260413's commit message
Add EnumMapConverter class for enum->String value flags

BUG=499007054
GWSQ_IGNORES: chriscampos@google.com
PiperOrigin-RevId: 894221083
Change-Id: Id96f87257516f2028d7512ad5ec9900d947fbd92