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

updating the workspace based on updated repo file #276

Open
fmessmer opened this issue Jun 11, 2024 · 2 comments
Open

updating the workspace based on updated repo file #276

fmessmer opened this issue Jun 11, 2024 · 2 comments

Comments

@fmessmer
Copy link

fmessmer commented Jun 11, 2024

I'm missing a feature similar to wstool update

I have a workspace initially imported based on a repo file.
Now the repo files changes, e.g.:

  • add a new repo
  • change the url (aka origin) of a repo
  • change the version (branch or hash) of a repo

How would I keep my workspace on the filesystem (because I might have added origins, branches and other changes while working with the workspace) but still checkout the latest origin/branch/hash of the repos and/or clone missing repos.

For wstool update, this was possible. i.e. other remotes and branches were kept, but the new info in the rosinstall file was used to update the workspace to what is described in the rosinstall file

Does this kind of functionality exist in vcstool?
How can I achieve it?

@fmessmer
Copy link
Author

I found the following related issues:

so vcs pull --nested would update things - if not using haches

but I'm still missing a tool to update my workspace to new checkout new hashes if those changed in the repo file...

@MaxandreOgeret
Copy link

You can use my fork of vcstool: vcstool2 which adds a rm command.
Maybe it would fit your need to delete the repos you want to update and then run pull again ?

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

No branches or pull requests

2 participants