# HG changeset patch # User Sean Farley # Date 1449105980 28800 # Node ID 528015bde03487cc30d035e95a4a191699ff3b10 # Parent 393bde462133378354aa7d1ef392931b5e5ad1d6 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. diff -r 393bde462133 -r 528015bde034 hggit/git_handler.py --- a/hggit/git_handler.py Thu Oct 29 15:57:17 2015 -0700 +++ b/hggit/git_handler.py Wed Dec 02 17:26:20 2015 -0800 @@ -991,8 +991,15 @@ 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") %