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