4 ms·
What is the benefit for maintaining a git repo interface in pure python, portability?
by diminish 13y ago
What is the benefit for maintaining a git repo interface in pure python, portability?
- ergo14 13y agohttp://rhodecode.com http://rhodecode.com ;-)
- lucian1900 13y agoIts main usage is hg-git, which is a hg plugin that lets you use hg to interact with git repos. It would be very inconvenient to do the same thing by starting a git subprocess all the time.
- stephen_mcd 13y agoAnd hg-github, a wrapper on top of hg-git I wrote: https://github.com/stephenmcd/hg-github https://github.com/stephenmcd/hg-github
- masklinn 13y ago1. hg-git, both libraries were started by githubbers to get the market of people-who-want-to-use-hg on github 2. interfacing with git repos from python, doing so through subprocess is less than enjoyable (and libgit2 basically didn't exist at the time) (and requires C code, which may be a chore e.g. on windows)
- jordigh 13y agoI wanted to speed up hg-git, since it's really slow for moderately-sized git repos. The slowness seems to be all in Dulwich. Isn't it more desirable then to have Python bindings to libgit?
- dochtman 13y agohttp://www.pygit2.org/ http://www.pygit2.org/ I think there's a bunch of speeding-up hg-git work floating around, notably around Mozilla work. Some of that has been mentioned in the hg-git mailing list.