Mercurial > hg
comparison tests/test-alias.t @ 24222:02d7b5cd373b
dispatch: offer suggestions of similar-named commands
When suggestions are available, we show those suggestions instead of
showing some help output.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 10 Feb 2015 15:59:12 -0500 |
parents | 975c4fc4a512 |
children | b3376fba4ab9 |
comparison
equal
deleted
inserted
replaced
24221:4e240d6ab898 | 24222:02d7b5cd373b |
---|---|
358 | 358 |
359 $ hg subalias | 359 $ hg subalias |
360 sub | 360 sub |
361 $ hg --cwd .. subalias > /dev/null | 361 $ hg --cwd .. subalias > /dev/null |
362 hg: unknown command 'subalias' | 362 hg: unknown command 'subalias' |
363 (did you mean one of idalias?) | |
363 [255] | 364 [255] |
364 $ hg -R .. subalias > /dev/null | 365 $ hg -R .. subalias > /dev/null |
365 hg: unknown command 'subalias' | 366 hg: unknown command 'subalias' |
367 (did you mean one of idalias?) | |
366 [255] | 368 [255] |
367 | 369 |
368 | 370 |
369 shell alias defined in other repo | 371 shell alias defined in other repo |
370 | 372 |
371 $ hg mainalias > /dev/null | 373 $ hg mainalias > /dev/null |
372 hg: unknown command 'mainalias' | 374 hg: unknown command 'mainalias' |
375 (did you mean one of idalias?) | |
373 [255] | 376 [255] |
374 $ hg -R .. mainalias | 377 $ hg -R .. mainalias |
375 main | 378 main |
376 $ hg --cwd .. mainalias | 379 $ hg --cwd .. mainalias |
377 main | 380 main |
378 | 381 |
382 typos get useful suggestions | |
383 $ hg --cwd .. manalias | |
384 hg: unknown command 'manalias' | |
385 (did you mean one of idalias, mainalias, manifest?) | |
386 [255] | |
379 | 387 |
380 shell aliases with escaped $ chars | 388 shell aliases with escaped $ chars |
381 | 389 |
382 $ hg escaped1 | 390 $ hg escaped1 |
383 test$test | 391 test$test |