-
Notifications
You must be signed in to change notification settings - Fork 745
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
Redo fossil segment to use RepoStats #286
Conversation
This implementation does not work well in older versions of fossil, like 1.37, apparently due to a bug in that version of fossil that throws an error with `fossil changes --differ`.
For older versions of fossil that throw an error on `fossil changes --differ`, like version 1.37.
This looks great. I'm going to try to look in more detail & do some of my own testing today. I am a bit busy though so if I don't get back to you by Monday please feel free to remind me. |
If the fossil repository had untracked files and no modifications in the tracked files, the parsing would fail because the status list would begin with an unexpected blank element.
In the meanwhile I found a bug that manifested when the fossil repository had no changes in the tracked files but had untracked files. That situation would brake the parsing because it would introduce an unexpected blank element in the beginning of the status list. |
@emansije how would you feel about introducing tests for this? I think the most helpful thing you could do would be to test the |
Sure! I really should have implemented the tests from the start, it'd probably have saved me some time. I'll use your suggestions. |
It implies going from a threaded segment to a basic one, otherwise it throws a RuntimeError: threads can only be started once
I can't get the test to work when the fossil segment is a threaded one, it keeps throwing this error:
|
I just played around a bit to figure out what was going on. I made some changes here: ebb7187 The issue was the use of Let me know what you think / if you have other suggestions. |
Looks good to me! The tests and the segment work just fine and it's a cleaner solution, too. |
Includes a hack to make it work in older versions of fossil that throw an error with
fossil changes --differ
, like version 1.37 does.