comparison tests/test-commandserver.t @ 45906:95c4cca641f6

errors: remove trailing "!" from some error messages for consistency Some types of exceptions had a trailing "!" printed after the message from the exception itself. I guess some of these errors seem a little more severe (?), but it seems more likely that the inconsistency was just an oversight. Differential Revision: https://phab.mercurial-scm.org/D9378
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 23 Nov 2020 11:18:48 -0800
parents 8d72e29ad1e0
children f44b9c72f061
comparison
equal deleted inserted replaced
45905:e131dbf6ee15 45906:95c4cca641f6
88 *** runcommand id --config ui.quiet=True 88 *** runcommand id --config ui.quiet=True
89 000000000000 89 000000000000
90 *** runcommand id 90 *** runcommand id
91 000000000000 tip 91 000000000000 tip
92 *** runcommand id -runknown 92 *** runcommand id -runknown
93 abort: unknown revision 'unknown'! 93 abort: unknown revision 'unknown'
94 [255] 94 [255]
95 95
96 >>> from hgclient import bprint, check, readchannel 96 >>> from hgclient import bprint, check, readchannel
97 >>> @check 97 >>> @check
98 ... def inputeof(server): 98 ... def inputeof(server):
146 ... def cwd(server): 146 ... def cwd(server):
147 ... readchannel(server) 147 ... readchannel(server)
148 ... runcommand(server, [b'log', b'-b', b'--config=alias.log=!echo pwned', 148 ... runcommand(server, [b'log', b'-b', b'--config=alias.log=!echo pwned',
149 ... b'default']) 149 ... b'default'])
150 *** runcommand log -b --config=alias.log=!echo pwned default 150 *** runcommand log -b --config=alias.log=!echo pwned default
151 abort: unknown revision '--config=alias.log=!echo pwned'! 151 abort: unknown revision '--config=alias.log=!echo pwned'
152 [255] 152 [255]
153 153
154 check that "histedit --commands=-" can read rules from the input channel: 154 check that "histedit --commands=-" can read rules from the input channel:
155 155
156 >>> from hgclient import check, readchannel, runcommand, stringio 156 >>> from hgclient import check, readchannel, runcommand, stringio
729 729
730 don't fall back to cwd if invalid -R path is specified (issue4805): 730 don't fall back to cwd if invalid -R path is specified (issue4805):
731 731
732 $ cd repo 732 $ cd repo
733 $ hg serve --cmdserver pipe -R ../nonexistent 733 $ hg serve --cmdserver pipe -R ../nonexistent
734 abort: repository ../nonexistent not found! 734 abort: repository ../nonexistent not found
735 [255] 735 [255]
736 $ cd .. 736 $ cd ..
737 737
738 738
739 #if no-windows 739 #if no-windows