changeset 178:77a5fded9f45

init: add init() to hgclient to allow progress to be reported The init() command is required as a member of hgclient so that progress, output and errors from the init() command can be sent to cbout and cberr call backs.
author Barry A. Scott <barry@barrys-emacs.org>
date Fri, 28 Oct 2016 11:45:57 +0100
parents 6f15cb7cc9cb
children c4c0efb37187
files hglib/client.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hglib/client.py	Mon Jul 18 23:40:45 2016 -0500
+++ b/hglib/client.py	Fri Oct 28 11:45:57 2016 +0100
@@ -539,6 +539,11 @@
                           u=updaterev, r=revrange)
         self.rawcommand(args)
 
+    def init(self, dest, ssh=None, remotecmd=None, insecure=False):
+        args = util.cmdbuilder('init', dest, e=ssh, remotecmd=remotecmd,
+                               insecure=insecure)
+        self.rawcommand(args)
+
     def commit(self, message=None, logfile=None, addremove=False,
                closebranch=False, date=None, user=None, include=None,
                exclude=None, amend=False):