##// END OF EJS Templates
errors: use detailed exit code for RepoLookupError...
Martin von Zweigbergk -
r49191:8c4881c0 default
parent child Browse files
Show More
@@ -180,6 +180,8 b' def callcatch(ui, func):'
180 180 )
181 181 )
182 182 except error.RepoError as inst:
183 if isinstance(inst, error.RepoLookupError):
184 detailed_exit_code = 10
183 185 ui.error(_(b"abort: %s\n") % inst)
184 186 if inst.hint:
185 187 ui.error(_(b"(%s)\n") % inst.hint)
@@ -245,4 +245,4 b' display how "{activebookmark}" template '
245 245 $ hg bookmarks --inactive
246 246 $ hg bookmarks -ql .
247 247 abort: no active bookmark
248 [255]
248 [10]
@@ -357,7 +357,7 b' demand that one of the bookmarks is acti'
357 357 (leaving bookmark V)
358 358 $ hg push -B . ../a
359 359 abort: no active bookmark
360 [255]
360 [10]
361 361 $ hg update -r V
362 362 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
363 363 (activating bookmark V)
@@ -278,7 +278,7 b' rename bookmark using . with no active b'
278 278 $ hg book -i rename-me
279 279 $ hg book -m . renamed
280 280 abort: no active bookmark
281 [255]
281 [10]
282 282 $ hg up -q Y
283 283 $ hg book -d rename-me
284 284
@@ -298,7 +298,7 b' delete bookmark using . with no active b'
298 298 $ hg book -i delete-me
299 299 $ hg book -d .
300 300 abort: no active bookmark
301 [255]
301 [10]
302 302 $ hg up -q Y
303 303 $ hg book -d delete-me
304 304
@@ -58,12 +58,12 b' unknown branch and fallback'
58 58
59 59 $ hg in -qbz
60 60 abort: unknown branch 'z'
61 [255]
61 [10]
62 62 $ hg in -q ../branch#z
63 63 2:f25d57ab0566
64 64 $ hg out -qbz
65 65 abort: unknown branch 'z'
66 [255]
66 [10]
67 67
68 68 in rev c branch a
69 69
@@ -716,7 +716,7 b' test bundle with # in the filename (issu'
716 716 $ hg incoming '../test#bundle.hg'
717 717 comparing with ../test
718 718 abort: unknown revision 'bundle.hg'
719 [255]
719 [10]
720 720
721 721 note that percent encoding is not handled:
722 722
@@ -159,7 +159,7 b' check strict parsing of early options:'
159 159 ... b'default'])
160 160 *** runcommand log -b --config=alias.log=!echo pwned default
161 161 abort: unknown revision '--config=alias.log=!echo pwned'
162 [255]
162 [10]
163 163
164 164 check that "histedit --commands=-" can read rules from the input channel:
165 165
@@ -127,20 +127,20 b' Early options must come first if HGPLAIN'
127 127 #if no-chg
128 128 $ HGPLAIN=+strictflags hg log -b --config='hooks.pre-log=false' default
129 129 abort: unknown revision '--config=hooks.pre-log=false'
130 [255]
130 [10]
131 131 $ HGPLAIN=+strictflags hg log -b -R. default
132 132 abort: unknown revision '-R.'
133 [255]
133 [10]
134 134 $ HGPLAIN=+strictflags hg log -b --cwd=. default
135 135 abort: unknown revision '--cwd=.'
136 [255]
136 [10]
137 137 #endif
138 138 $ HGPLAIN=+strictflags hg log -b --debugger default
139 139 abort: unknown revision '--debugger'
140 [255]
140 [10]
141 141 $ HGPLAIN=+strictflags hg log -b --config='alias.log=!echo pwned' default
142 142 abort: unknown revision '--config=alias.log=!echo pwned'
143 [255]
143 [10]
144 144
145 145 $ HGPLAIN=+strictflags hg log --config='hooks.pre-log=false' -b default
146 146 abort: option --config may not be abbreviated
@@ -204,7 +204,7 b' client side wrapping'
204 204 $ hg pull -r b4e4bce660512ad3e71189e14588a70ac8e31fef
205 205 pulling from $TESTTMP/repo
206 206 abort: unknown revision 'b4e4bce660512ad3e71189e14588a70ac8e31fef'
207 [255]
207 [10]
208 208 $ hg glog
209 209 o 1:6cb0989601f1 added a
210 210 | public
@@ -189,10 +189,10 b' Unknown bookmark:'
189 189
190 190 $ hg log -B unknown
191 191 abort: bookmark 'unknown' does not exist
192 [255]
192 [10]
193 193
194 194 Shouldn't accept string-matcher syntax:
195 195
196 196 $ hg log -B 're:.*'
197 197 abort: bookmark 're:.*' does not exist
198 [255]
198 [10]
@@ -1417,7 +1417,7 b' are specified (issue5100):'
1417 1417
1418 1418 $ hg log -b 're:.*'
1419 1419 abort: unknown revision 're:.*'
1420 [255]
1420 [10]
1421 1421 $ hg log -k 're:.*'
1422 1422 $ hg log -u 're:.*'
1423 1423
@@ -1544,7 +1544,7 b' log -b dummy'
1544 1544
1545 1545 $ hg log -b dummy
1546 1546 abort: unknown revision 'dummy'
1547 [255]
1547 [10]
1548 1548
1549 1549
1550 1550 log -b .
@@ -570,7 +570,7 b' With --update'
570 570 added 2 changesets with 0 changes to 2 files (+1 heads)
571 571 (2 other changesets obsolete on arrival)
572 572 abort: cannot update to target: filtered revision '6'
573 [255]
573 [10]
574 574
575 575 $ cd ..
576 576
@@ -112,7 +112,7 b' Pull a missing revision:'
112 112
113 113 $ hg pull -qr missing ../repo
114 114 abort: unknown revision 'missing'
115 [255]
115 [10]
116 116
117 117 Pull multiple revisions with update:
118 118
@@ -307,7 +307,7 b' 3 gen1 packs, 1 gen0 pack - packs 3 gen1'
307 307 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over * (glob)
308 308 $ hg prefetch -r 38
309 309 abort: unknown revision '38'
310 [255]
310 [10]
311 311 $ ls_l $TESTTMP/hgcache/master/packs/ | grep datapack
312 312 -r--r--r-- 70 052643fdcdebbd42d7c180a651a30d46098e6fe1.datapack
313 313 $ ls_l $TESTTMP/hgcache/master/packs/ | grep histpack
@@ -306,7 +306,7 b' names that should be caught by fallback '
306 306 (negate
307 307 (symbol 'a')))
308 308 abort: unknown revision '-a'
309 [255]
309 [10]
310 310 $ try é
311 311 (symbol '\xc3\xa9')
312 312 * set:
@@ -870,7 +870,7 b' aliases:'
870 870 $ try m
871 871 (symbol 'm')
872 872 abort: unknown revision 'm'
873 [255]
873 [10]
874 874
875 875 $ HGPLAINEXCEPT=revsetalias
876 876 $ export HGPLAINEXCEPT
@@ -1061,7 +1061,7 b' far away.'
1061 1061 (symbol 'max')
1062 1062 (string '$1')))
1063 1063 abort: unknown revision '$1'
1064 [255]
1064 [10]
1065 1065
1066 1066 test scope of alias expansion: 'universe' is expanded prior to 'shadowall(0)',
1067 1067 but 'all()' should never be substituted to '0()'.
@@ -95,7 +95,7 b' trying clone -r'
95 95 $ cd ..
96 96 $ hg clone -r doesnotexist static-http://localhost:$HGPORT/remote local0
97 97 abort: unknown revision 'doesnotexist'
98 [255]
98 [10]
99 99 $ hg clone -r 0 static-http://localhost:$HGPORT/remote local0
100 100 adding changesets
101 101 adding manifests
@@ -1295,10 +1295,10 b" but a filtered one doesn't"
1295 1295 -1
1296 1296 $ hg log -T '{revset("%d", rev + 1)}\n' -r'tip'
1297 1297 abort: unknown revision '3'
1298 [255]
1298 [10]
1299 1299 $ hg log -T '{revset("%d", rev - 1)}\n' -r'null'
1300 1300 abort: unknown revision '-2'
1301 [255]
1301 [10]
1302 1302
1303 1303 Invalid arguments passed to revset()
1304 1304
General Comments 0
You need to be logged in to leave comments. Login now