-
Notifications
You must be signed in to change notification settings - Fork 2
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
Detect if "svn up"/"git pull"/etc resulted in any actual code updates #3
Comments
Is depending on the output of git/hg/svn possible after all? We do run everything in verbose mode, so you could for instance detect changed filenames in the following git output:
Another idea could be to use some "watch" tool on the filesystem. We should exclude the Only... I don't want the checkoutmanager code to become twice as big :-) |
To be clear, though, I never wanted the list of the files changed. The output of My problem was that the output was effectively too verbose. A list of the repositories that got/have changes is useful to me, since there are some repositories that I care about which aren't changed often. Also, with all that text scrolling down, I often did not realize that there was a problem during the update. The changes I wrote against 1.16 (https://bitbucket.org/chintal/checkoutmanager/branches/compare/chintal/checkoutmanager:tip%0Dreinout/checkoutmanager:1.16#diff) were to allow me to look only at a final summary of everything that happened. I'd recommend not actually using that code, though, because :
Due to these reasons, I'm seriously thinking about starting from a fresh checkout of checkoutmanager and redoing it. If you have any notes about it, or desirable behaviour or such, I can take that into account if/when I get around to working on it again. I've only had one functional problem with the code over the last couple of years (the caveat). SVN conflicts are unreported, or not reported loudly enough. On occasion, this has led to stale repositories left in the tree. As an example, right now (not connected to the network which has the repositories), I see :
When I am connected to the network, I get one line per repository that got an update / has an update that can be pulled :
|
See #14 |
See original issue https://bitbucket.org/reinout/checkoutmanager/issues/22/add-command-switch-to-check-if by @chintal
I'm limiting the original issue to this:
What I'd like is reliably detecting whether "checkoutmanager up" resulted in any actual code updates. Seems hard to me, as hg/git/svn/bzr regularly change their output format and return codes and so. And it sometimes also is language-dependent. So... Any good ideas are welcome.
The text was updated successfully, but these errors were encountered: