Custom label for copybara state

66 views
Skip to first unread message

Łukasz Dywicki

unread,
Jul 11, 2023, 1:53:28 PM7/11/23
to Copybara OSS
Hi all,
I am a random folk who got interested in copybara after seeing various approaches towards replication/synchronization of git repositories. So far I've seen forked repos with various scripts. Copybara gives a hope for a more structured (and portable) way.

One of approaches I've used in past with my colleagues involved a bash script which attempted to first generate a patch, then do basic find&replace and then apply it. Script is public (https://github.com/opensmarthouse/opensmarthouse-core/blob/master/patch.sh) and it does handle primary relocations. In order to retain status we used custom commit label called 'X-Backport-Id'. After a look at copybara I found that it assumes 'GitOrigin-RevId'. I made succesful patch to customize that, yet I am not sure what's contributor's view on such change. I am able to provide PR and go over review process if needed.
Is there a interest and will to get another option for copybara to work with a custom commit label?

Best,
Łukasz

Chris Campos

unread,
Sep 27, 2023, 10:49:03 AM9/27/23
to Copybara OSS
You can try the experimental_custom_rev_id setting in core.workflow, which lets you customize this. 


Cheers,
Chris

Łukasz Dywicki

unread,
Oct 2, 2023, 8:29:36 AM10/2/23
to Copybara OSS
Hello Chris,
Thank you for hint. I think I have tried it, but it didn't go through all places. I will check it again and try to indicate which case was missed.

Best,
Łukasz
Reply all
Reply to author
Forward
0 new messages