##// END OF EJS Templates
hghave: add a check for pygit2...
Martin von Zweigbergk -
r44967:2e464925 default
parent child Browse files
Show More
@@ -381,6 +381,17 b' def getgitversion():'
381 return (int(m.group(1)), int(m.group(2)))
381 return (int(m.group(1)), int(m.group(2)))
382
382
383
383
384 @check("pygit2", "pygit2 Python library")
385 def has_git():
386 try:
387 import pygit2
388
389 pygit2.Oid # silence unused import
390 return True
391 except ImportError:
392 return False
393
394
384 # https://github.com/git-lfs/lfs-test-server
395 # https://github.com/git-lfs/lfs-test-server
385 @check("lfs-test-server", "git-lfs test server")
396 @check("lfs-test-server", "git-lfs test server")
386 def has_lfsserver():
397 def has_lfsserver():
@@ -1,5 +1,4 b''
1 This test requires pygit2:
1 #require pygit2
2 > $PYTHON -c 'import pygit2' || exit 80
3
2
4 Setup:
3 Setup:
5 > GIT_AUTHOR_NAME='test'; export GIT_AUTHOR_NAME
4 > GIT_AUTHOR_NAME='test'; export GIT_AUTHOR_NAME
General Comments 0
You need to be logged in to leave comments. Login now