vcstool icon indicating copy to clipboard operation
vcstool copied to clipboard

updating the workspace based on updated repo file

Open fmessmer opened this issue 1 year ago • 2 comments

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 avatar Jun 11 '24 06:06 fmessmer

I found the following related issues:

  • https://github.com/dirk-thomas/vcstool/issues/193
  • https://github.com/dirk-thomas/vcstool/issues/165

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...

fmessmer avatar Jun 11 '24 06:06 fmessmer

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 ?

MaxandreOgeret avatar Aug 25 '24 12:08 MaxandreOgeret