Show More
@@ -44,6 +44,9 configitem( | |||
|
44 | 44 | default=False, |
|
45 | 45 | ) |
|
46 | 46 | |
|
47 | getversion = gitutil.pygit2_version | |
|
48 | ||
|
49 | ||
|
47 | 50 | # TODO: extract an interface for this in core |
|
48 | 51 | class gitstore(object): # store.basicstore): |
|
49 | 52 | def __init__(self, path, vfstype): |
@@ -20,6 +20,19 def get_pygit2(): | |||
|
20 | 20 | return pygit2_module |
|
21 | 21 | |
|
22 | 22 | |
|
23 | def pygit2_version(): | |
|
24 | mod = get_pygit2() | |
|
25 | v = "N/A" | |
|
26 | ||
|
27 | if mod: | |
|
28 | try: | |
|
29 | v = mod.__version__ | |
|
30 | except AttributeError: | |
|
31 | pass | |
|
32 | ||
|
33 | return b"(pygit2 %s)" % v.encode("utf-8") | |
|
34 | ||
|
35 | ||
|
23 | 36 | def togitnode(n): |
|
24 | 37 | """Wrapper to convert a Mercurial binary node to a unicode hexlified node. |
|
25 | 38 |
General Comments 0
You need to be logged in to leave comments.
Login now