comparison hglib/client.py @ 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 3f854e3bcdd1
children c4c0efb37187
comparison
equal deleted inserted replaced
177:6f15cb7cc9cb 178:77a5fded9f45
535 updaterev - revision, tag or branch to check out 535 updaterev - revision, tag or branch to check out
536 revrange - include the specified changeset 536 revrange - include the specified changeset
537 """ 537 """
538 args = cmdbuilder(b('clone'), source, dest, b=branch, 538 args = cmdbuilder(b('clone'), source, dest, b=branch,
539 u=updaterev, r=revrange) 539 u=updaterev, r=revrange)
540 self.rawcommand(args)
541
542 def init(self, dest, ssh=None, remotecmd=None, insecure=False):
543 args = util.cmdbuilder('init', dest, e=ssh, remotecmd=remotecmd,
544 insecure=insecure)
540 self.rawcommand(args) 545 self.rawcommand(args)
541 546
542 def commit(self, message=None, logfile=None, addremove=False, 547 def commit(self, message=None, logfile=None, addremove=False,
543 closebranch=False, date=None, user=None, include=None, 548 closebranch=False, date=None, user=None, include=None,
544 exclude=None, amend=False): 549 exclude=None, amend=False):