mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
push: print messages from the server
Some servers, for example, Bitbucket, output helpful messages. This patch reports the output, if any exist, to the user.
This commit is contained in:
parent
fc82883494
commit
37c52e3cab
@ -991,8 +991,15 @@ class GitHandler(object):
|
||||
self.ui.status(_("adding objects\n"))
|
||||
return self.git.object_store.generate_pack_contents(have, want)
|
||||
|
||||
def callback(remote_info):
|
||||
if not remote_info:
|
||||
remote_info = ''
|
||||
for line in remote_info.split('\n'):
|
||||
self.ui.status(_("remote: %s\n") % line)
|
||||
|
||||
try:
|
||||
new_refs = client.send_pack(path, changed, genpack)
|
||||
new_refs = client.send_pack(path, changed, genpack,
|
||||
progress=callback)
|
||||
if len(change_totals) > 0:
|
||||
self.ui.status(_("added %d commits with %d trees"
|
||||
" and %d blobs\n") %
|
||||
|
Loading…
Reference in New Issue
Block a user