dusty-phillips / gitifyhg

Tools for using git as a client to mercurial repositories
GNU General Public License v3.0
62 stars 17 forks source link

Can't get version #70

Closed PaulPrice closed 11 years ago

PaulPrice commented 11 years ago

Because I thought it might be useful, I tried to get the version number from git-remote-gitifyhg:

pprice@tiger3:~/test $ git-remote-gitifyhg --version
Traceback (most recent call last):
  File "/home/pprice/local/Linux.x86_64/bin/git-remote-gitifyhg", line 9, in <module>
    load_entry_point('gitifyhg==0.8.1', 'console_scripts', 'git-remote-gitifyhg')()
  File "/home/pprice/local/Linux.x86_64/lib/python2.6/site-packages/gitifyhg-0.8.1-py2.6.egg/gitifyhg/gitifyhg.py", line 262, in main
    HGRemote(*[x.decode('utf-8') for x in sys.argv[1:3]]).process()
TypeError: __init__() takes exactly 3 arguments (2 given)

At the worst, this should fail nicely, perhaps telling me what options are available. At the best, it should tell me the version number.

dusty-phillips commented 11 years ago

That should be a fairly easy patch to write, although it has to be careful not to interfere with the fact that git-remote-gitifyhg is normally intended to be run with parameters explicitly passed by git, not from the command line.

PaulPrice commented 11 years ago

Just thought it might be a useful utility for people reporting problems so they could easily access the gitifyhg version, and perhaps the python and git versions as well.

dusty-phillips commented 11 years ago

Yeah, it's a good idea, and it shouldn't interfere with anything. As simple as it is, I'm really busy to be working on this project right now. It is the next open source project I intend to sprint on, but I'm not sure when. Or it's a good place for outside contributors to start if you're interested.

PaulPrice commented 11 years ago

Yeah, I'm digging around now on #58 to get my feet wet.

PaulPrice commented 11 years ago

Ready for review.