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

Rearrange exclude code to filter source and target URLs #2322

Merged
merged 1 commit into from
Dec 4, 2017

Conversation

kannappanr
Copy link
Collaborator

Move exclude code handler to mirror-url and mirror-main

Fixes #2319

@codecov-io
Copy link

codecov-io commented Dec 2, 2017

Codecov Report

Merging #2322 into master will decrease coverage by <.01%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2322      +/-   ##
==========================================
- Coverage   10.83%   10.82%   -0.01%     
==========================================
  Files         102      102              
  Lines        7706     7711       +5     
==========================================
  Hits          835      835              
- Misses       6736     6741       +5     
  Partials      135      135
Impacted Files Coverage Δ
cmd/difference.go 0% <0%> (-3.74%) ⬇️
cmd/mirror-main.go 0% <0%> (ø) ⬆️
cmd/diff-main.go 0% <0%> (ø) ⬆️
cmd/mirror-url.go 5.05% <41.66%> (+5.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0aa704a...0a1f7b9. Read the comment docs.

continue
}

tgtSuffix := strings.TrimPrefix(diffMsg.SecondURL, targetURL)
Copy link
Member

Choose a reason for hiding this comment

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

It is easy to understand: 'please exclude some files in source when mirroring'.. but it is not easy to understand 'please exclude some files in target when mirroring`.. Is there any useful use case for the latter scenario ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vadmeste , if --remove flags is passed, the files in the target will be removed. So, exclude options should be applied to both source and target.

Copy link
Member

Choose a reason for hiding this comment

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

@vadmeste , if --remove flags is passed, the files in the target will be removed. So, exclude options should be applied to both source and target.

okay, then you need to update --exclude help message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Move exclude code handler to mirror-url and mirror-main

Fixes minio#2319
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

LGTM

@deekoder deekoder merged commit 1fd03fb into minio:master Dec 4, 2017
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.

5 participants