comparison tests/test-revlog-v2.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 15d35f2ba474
children 17a695357270
comparison
equal deleted inserted replaced
45905:e131dbf6ee15 45906:95c4cca641f6
4 4
5 $ hg init invalidreq 5 $ hg init invalidreq
6 $ cd invalidreq 6 $ cd invalidreq
7 $ echo exp-revlogv2.unknown >> .hg/requires 7 $ echo exp-revlogv2.unknown >> .hg/requires
8 $ hg log 8 $ hg log
9 abort: repository requires features unknown to this Mercurial: exp-revlogv2.unknown! 9 abort: repository requires features unknown to this Mercurial: exp-revlogv2.unknown
10 (see https://mercurial-scm.org/wiki/MissingRequirement for more information) 10 (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
11 [255] 11 [255]
12 $ cd .. 12 $ cd ..
13 13
14 Can create and open repo with revlog v2 requirement 14 Can create and open repo with revlog v2 requirement
33 33
34 >>> with open('.hg/store/00changelog.i', 'wb') as fh: 34 >>> with open('.hg/store/00changelog.i', 'wb') as fh:
35 ... fh.write(b'\xff\x00\xde\xad') and None 35 ... fh.write(b'\xff\x00\xde\xad') and None
36 36
37 $ hg log 37 $ hg log
38 abort: unknown flags (0xff00) in version 57005 revlog 00changelog.i! 38 abort: unknown flags (0xff00) in version 57005 revlog 00changelog.i
39 [255] 39 [255]
40 40
41 $ cd .. 41 $ cd ..
42 42
43 Writing a simple revlog v2 works 43 Writing a simple revlog v2 works