Mercurial > hg
comparison tests/test-git-interop.t @ 45950:c7c1efdfd4de
git: show the version of `pygit2` with verbose version output
This seems like useful info to have when debugging. I followed the precedent of
hg-git, which prints something like:
hggit external 0.9.0a1 (dulwich 0.19.15)
We don't have a version number assigned (because it's internal), so it's just
the parenthetical.
Differential Revision: https://phab.mercurial-scm.org/D9436
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 26 Nov 2020 15:09:57 -0500 |
parents | a6f2821cdeab |
children | 9dd5b129ff28 |
comparison
equal
deleted
inserted
replaced
45949:a001e28ad5eb | 45950:c7c1efdfd4de |
---|---|
13 > GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" | 13 > GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" |
14 > git commit "$@" >/dev/null 2>/dev/null || echo "git commit error" | 14 > git commit "$@" >/dev/null 2>/dev/null || echo "git commit error" |
15 > count=`expr $count + 1` | 15 > count=`expr $count + 1` |
16 > } | 16 > } |
17 | 17 |
18 | |
19 $ hg version -v --config extensions.git= | grep '^[E ]' | |
20 Enabled extensions: | |
21 git internal (pygit2 *) (glob) | |
18 | 22 |
19 Test auto-loading extension works: | 23 Test auto-loading extension works: |
20 $ mkdir nogit | 24 $ mkdir nogit |
21 $ cd nogit | 25 $ cd nogit |
22 $ mkdir .hg | 26 $ mkdir .hg |