changeset 1129:5edabf9db748

gitrepo: implement commandexecutor for hg 4.6 For now, we just import when this method is called since only newer versions of Mercurial will be calling it.
author Sean Farley <sean@farley.io>
date Thu, 24 May 2018 09:50:04 +0200
parents 6141895a53c9
children 80664524802b
files hggit/gitrepo.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/gitrepo.py	Wed May 02 20:43:17 2018 -0500
+++ b/hggit/gitrepo.py	Thu May 24 09:50:04 2018 +0200
@@ -96,6 +96,9 @@
         def unbundle(self):
             raise NotImplementedError
 
+    def commandexecutor(self):
+        from mercurial.wireprotov1peer import peerexecutor
+        return peerexecutor(self)
 
 instance = gitrepo