Extend wstool info with branch data#38
Conversation
|
I have another idea, we could add a wstool command that invokes the respective VCS to give a summary: The output would be a right mess in a chaotic workspace, but may still be useful. This could be combined with selecting all repos of one type, like An alternative would be to implement the feature request here |
|
Yeah, I think it is useful, so why don't we implement it as
and both is okay, but the version information is info so I think adding option is better. Anyway, your another idea is as alternative to displaying remote branch in wstool-info-table, or another extention? I think adding remote-branch information to info-table is useful, and it should be another extention. |
I think that kind of command is expected by many users. ( as an user of wstool I also ) This command is also useful and should be implement as another feature.
|
|
Displaying the remote branch should go ahead as implemented already. I believe the out put of the summary would be very different from info, and it would not be very compatible to the other --options of info (like --summary --yaml). So I would prefer that to be a command of it's own. Also that should be a PR of it's own. If you have the time, making a separate PR for a #29 implementation would be nice. The details of how to implement custom/foreach should be discussed at #29. |
|
@wkentaro: there is still an open bug, the new information is not displayed when specifying a single repository |
|
I made fix at: tkruse#7 |
|
ok, I squashed all commits. The logic in cli_common.py is a nightmare to review, not sure what to do about it. Since the tests might break after vcstools/vcstools#99, it might be better to just wait until that one is done, adapt the tests / api calls, and then merge. |
|
Any idea why the test fails |
|
todo:
Possibly both vcstools and wstool could also be released in one step as a shortcut. |
|
Alright, thanks. |
|
It doesn't look like there are any outstanding pr's or issues that can be easily resolved on vcstools, so I'll go ahead and make a release. Then we can fixup this pr. |
|
Ok, |
|
thanks.
I sent PR: tkruse#8 |
|
rebased and merged dependency update |
…w version mismatches fix vcstools#35: show C flag in status of wstool info using VcsClient.get_remote_version() 2nd author: Thibault Kruse
|
Moved to https://github.com/vcstools/wstool/tree/divergence ? |
|
yes, sorry, I get confused over remotes. fixed. |
|
fails in Python2.6, please merge: |
|
test passed. so we need squash commits as next step? |
|
i think they are as squashed as they should. We wait for @wjwwood to merge |
Extend wstool info with branch data
|
Thanks for the work on this guys. |
|
Thanks for this! It is oh-so useful. What was the consensus on also showing which way the difference in commits between local branch is going (like e.g. This information would be extremely valuable for my use case where I often have local commits across multiple repos lying around until all repos are ready and can be pushed at the same time. While I have the local commits unpushed, IIRC one concern was that it is not fast to compute (no?), but it seems fast enough (for git) to show it on every |
|
that is discussed at #35 (comment) , wstool info does not fetch by default, and has --fetch option. |
|
The different flags are discussed here: The reasons I gave for not (yet) supporting more detailed information about the divergence types were:
Of course the last point could be handled by just saying the other VCSes do not support a new method, and gracefully return None or something neutral. I understand most ROS code is now using git anyway. So basically, it can be hacked rather quickly, but finding and implementing a clean solution would take some effort and thinking. The computation time itself was not yet looked at. It would not make wstool info any faster, but probably also not significantly slower (2 shell comands to git per repo that work on local repository). If you want to discuss this more, maybe open a new issue on that. It might be interesting if something convenient can be hacked using wstool info --yaml or wstool foreach. |
|
I startet a new issue #63.
Yes I know. I use it and it is a great feature. Thanks for implementing! |
This depends on vcstools/vcstools#98 changes being merged and released first
This should supercede #35 which can be closed.
wstool info xyz