https://lakefs.io/ logo
Title
a

Aapta Bhatt

04/21/2023, 7:32 AM
my question is how to provide --strategy dest-wins option via SDK ?
o

Or Tzabary

04/21/2023, 7:36 AM
Hey @Aapta Bhatt , Let me check that for you
take a look at this example, there are two
merge_into_branch
API calls, the second one passes the
merge
parameter, with additional data, such as: message, metadata and strategy
from lakefs_client.model.merge import Merge

merge = Merge(
  message="message_example",
  metadata={
    "key": "key_example",
  },
  strategy="strategy_example",
) # Merge |  (optional)

api_response = api_instance.merge_into_branch(repository, source_ref, destination_branch, merge=merge)
a

Aapta Bhatt

04/21/2023, 8:22 AM
Thanks, It really helped 🙂
o

Or Tzabary

04/21/2023, 8:22 AM
😃 happy to hear