-
Notifications
You must be signed in to change notification settings - Fork 129
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
Implement repository filters #764
base: master
Are you sure you want to change the base?
Implement repository filters #764
Conversation
8e94506
to
e33ddb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for your effort!
You should also consider augmenting the docs.
I noticed a minor issue when testing:
-folder1,folder2
doesn't keep folder2 only as expected (but this usage is not meaningful)
ici_import_repository "$sourcespace" "$source" "$filter" | ||
;; | ||
http://* | https://*) # When UPSTREAM_WORKSPACE is an http url, use it directly | ||
ici_import_url "$sourcespace" "$source" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you skip the filter for ici_import_url
intentionally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. There is no specific folder that can be filtered in this case.
.) | ||
ici_log "Copying '$basepath'" | ||
ici_import_directory "$sourcespace" "$basepath" | ||
;; | ||
/*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code here for /*)
and below for *)
is rather similar. Do you want to factor that out into a separate function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! I will make it a fall-through
The order is important.. If the list starts with "-", the complete repo will be used (otherwise there is nothing to delete from..). |
13aa5ed
to
979a02a
Compare
979a02a
to
fd671d9
Compare
Alternative to #763
New syntax:
UPSTREAM_WORKSPACE='github:ros-controls/ros_control#melodic-devel,-rqt_controller_manager'
UPSTREAM_WORKSPACE='github:ros-controls/ros_control#melodic-devel,rqt_controller_manager,-rqt_controller_manager/CHANGELOG.rst
UPSTREAM_WORKSPACE='local_folder,-sub_folder
(untested)@rhaschke: Please have a look
Instead of "+" I used the already existing syntax for copying sub-folders.
If filter starts with "-", the filter operates on the cloned repository directly.