Progress parsing - #20
Conversation
Recent versions of git do not output progress without this flag when not connected to a tty.
--progress is not a valid flag for earlier versions of git, so we check for the version before using it.
|
I've tried implementing something like what you suggested. I'm not sure what version the Also, I don't have earlier versions on my system and it would be a pain to install them, so I haven't really tested whether the code works when I tried running Also fixed up some indentation in the previous commit (spaces -> tabs). |
|
The tests are supposed to run, except for two which will require a git-daemon to run (the error message would tell you what to do though). Besides I just noticed that its probably not a good idea to override git.version directly, as this breaks code for everyone who wanted to use the 'old' version as git.version(). Hence I suggest it to be renamed to Once you could verify the tests are still working, especially the push/pull tests which use the git-daemon, I will have a look and see which version introduced --progress, in order to set the version to compare to correctly. |
|
Most of the errors are AttributeErrors saying that various objects have no attribute called |
|
Actually I have no idea. I know that the rorepo attribute is created on the base type for all test cases, and on my recent checkout of master it works without an issue. |
|
Hmm. I switched to your version of nose but the problem remains.. just to make sure I am getting things right: to run the tests, I just need to run |
|
Yes, it will do from the root or from the git subdirectory. |
|
Is it possible for the tests to be run on just your end? I really can't get it to work on my box. |
|
Ok, will do. I might not get to it too soon, as I am actually applying plenty of changes in another branch which will clearly collide with these changes here. Nonetheless I try to maintain master in the meanwhile, so lets see when I get to it. |
|
Alright then. I've renamed version to version_info like you suggested. Sorry I couldn't help more! |
There was a problem hiding this comment.
I think you forgot to convert the strings to integers.
The line should be something like
tuple(int(n) for n in version_numbers.split('.'))
Remove duplicate `const`

These 3 commits do the following:
class Remoteinto theutilmodule so that the git-clone code could use it as well. I'm not sure this is the best way to organize things; let me know if I should make changes.