comparison tests/test-commandserver.t @ 40590:83dd8c63a0c6

ui: extract helpers to write message with type or label This provides a 'type' attribute to command-server clients, which seems more solid than relying on 'ui.<type>' labels. In future patches, type='progress' will be added to send raw progress information.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Jan 2015 17:55:28 +0900
parents 054d0fcba2c4
children c49283e740da
comparison
equal deleted inserted replaced
40589:054d0fcba2c4 40590:83dd8c63a0c6
743 encoding: ascii 743 encoding: ascii
744 message-encoding: cbor 744 message-encoding: cbor
745 pid: * (glob) 745 pid: * (glob)
746 pgid: * (glob) 746 pgid: * (glob)
747 *** runcommand -R repo2 verify 747 *** runcommand -R repo2 verify
748 message: '\xa2DdataTchecking changesets\nElabelJ ui.status' 748 message: '\xa2DdataTchecking changesets\nDtypeFstatus'
749 message: '\xa2DdataSchecking manifests\nElabelJ ui.status' 749 message: '\xa2DdataSchecking manifests\nDtypeFstatus'
750 message: '\xa2DdataX0crosschecking files in changesets and manifests\nElabelJ ui.status' 750 message: '\xa2DdataX0crosschecking files in changesets and manifests\nDtypeFstatus'
751 message: '\xa2DdataOchecking files\nElabelJ ui.status' 751 message: '\xa2DdataOchecking files\nDtypeFstatus'
752 message: '\xa2DdataX/checked 0 changesets with 0 changes to 0 files\nElabelJ ui.status' 752 message: '\xa2DdataX/checked 0 changesets with 0 changes to 0 files\nDtypeFstatus'
753 753
754 bad message encoding: 754 bad message encoding:
755 755
756 $ hg serve --cmdserver pipe --config ui.message-output=channel 756 $ hg serve --cmdserver pipe --config ui.message-output=channel
757 abort: no supported message encodings: 757 abort: no supported message encodings: