# HG changeset patch # User Barry A. Scott # Date 1477651557 -3600 # Node ID 77a5fded9f452de178f52d77f11cf1394bdf9f47 # Parent 6f15cb7cc9cb4427f35c60080f85dbf4ca5abd10 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. diff -r 6f15cb7cc9cb -r 77a5fded9f45 hglib/client.py --- 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):