Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lakefs import with merge support #726

Merged
merged 5 commits into from
Oct 1, 2020
Merged

Conversation

nopcoder
Copy link
Contributor

@nopcoder nopcoder commented Oct 1, 2020

The optional flag --with-merge will merge the import changes from our default branch to the repo default branch

@nopcoder nopcoder requested a review from johnnyaug October 1, 2020 12:36
cmd/lakefs/cmd/import.go Show resolved Hide resolved
@@ -145,4 +166,5 @@ func init() {
importCmd.Flags().Bool(DryRunFlagName, false, "Only read inventory and print stats, without making any changes")
importCmd.Flags().StringP(ManifestURLFlagName, "m", "", fmt.Sprintf("S3 uri to the manifest.json to use for the import. Format: %s", ManifestURLFormat))
_ = importCmd.MarkFlagRequired(ManifestURLFlagName)
importCmd.Flags().Bool(WithMergeFlagName, false, "With merge after import completes")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helptext: "Merge imported data to the repository's main branch"

Flag suggestion: instead of with-merge >> "merge-to-main" -- but not sure about this one. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

went with the default repository branch - not sure it will be main. also, GitHub remove main so I guess we will be next ;)

cmd/lakefs/cmd/import.go Show resolved Hide resolved
cmd/lakefs/cmd/import.go Outdated Show resolved Hide resolved
nopcoder and others added 3 commits October 1, 2020 15:44
Co-authored-by: johnnyaug <yoni.augarten@treeverse.io>
@nopcoder nopcoder requested a review from johnnyaug October 1, 2020 12:49
@nopcoder nopcoder merged commit 995d5ba into master Oct 1, 2020
@nopcoder nopcoder deleted the feature/import-with-merge branch October 1, 2020 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants