Current versions in portage (0.9.4, 0.9.5) is buggy (check https://github.com/schacon/hg-git/issues/280), please bump to 0.9.7.
Created attachment 379136 [details, diff] diff -u of prior and new versions dropped py2.6 pypy2_0 add py3 support. added new dep gevent. Re-write of test phase. Use of the traditional make check triggers a seg fault under pypy but works fine with py2.7. After exhaustive testing it's apparent that the travis testing has missed it and it's likely a bug in _diff_tree.pypy-22.so according to the upstream owner maintainer. In summary, make check should suffice for both but it doesn't yet. Also added IUSE examples and examples install. gevent is an optional runtime dep which I've included as a test dep. Setting in RDEPEND will block pypy as an impl. It could be discarded but I prefer to include it. This is good to 'go' for commit as is, however we now have upstream looking at fixing the bug under pypy, which is a case of the testsuite doing what it was made for. I shall commit in a few days if not done so by the assignee.
*dulwich-0.9.7 (20 Jun 2014) 20 Jun 2014; Ian Delaney <idella4@gentoo.org> +dulwich-0.9.7.ebuild: drop py2.6 pypy2_0, add IUSE examples, dep for tests, updrade test phase, closes Bug #513392