-
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
Fix folder removal #763
Fix folder removal #763
Conversation
Remember last imported repository and consider file to-be-removed w.r.t. this repo as indicated by docs.
... to source space. This facilitates keeping a few folders from a large imported source repository, e.g. github.com:ros-planning/moveit#master +moveit_core -moveit
Oh, the documentation needs to be fixed!
This only works with directly specified repositories, not with rosinstall files (which are recommended for larger setups)
This adds ambiguity, especially, if you mix instructions. |
if [ -e "${sourcespace:?}/$file" ]; then break; fi | ||
done | ||
ici_log "Moving '${sourcespace:?}/$file' to '${sourcespace:?}'" | ||
ici_guard mv "${sourcespace:?}/$file" "${sourcespace:?}" |
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.
This does not copy parent folders..
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.
Which parent folder you are referring to? I'm assuming that you would move folders below $sourcespace
only.
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.
repo/sub1/sub2/abc
would end up in ${sourcespace}/abc
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. Does that harm?
Of course, your syntax proposal that filters folders within a repo parent folder, will be much better. No risk for conflicts ;-)
I'm not quite sure how to interpret your feedback. |
I was told that this could be done easily with SVN (which is still supported by Github). Something like: |
You can use git-svn to clone an svn repo with git, but not the other way around as far as I know.
That would clarify that the filter applies to the specific repo, which is good. |
Apparently, it works the other way around as well.
No, the old options should stay (used with rosinstall). |
Closing as Mathias will suggest a more specific approach. |
Trying to keep a single folder from a larger source repository, I ran into several issues:
UPSTREAM_WORKSPACE='github:ros-controls/ros_control#melodic-devel -rqt_controller_manager'
The folder should be specified with the repository prefix:
-ros_control/rqt_controller_manager
. However, this is clumsy.This PR
+folder
to keep a specific folderExample run: https://github.com/rhaschke/test/runs/4654479819