Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-empty-dir @ 1739:57de7e1a81d2
AmbiguousCommand is raised too soon.
Right now, hg raises AmbiguousCommand as soon as it finds two
commands/aliases that start with the substring it's searching for, even
though it may still find a full match later on.
This is a bit hard to hit on purpose, because hg checks the list of
commands in whatever order is returned by table.keys(), which will
change when you add an alias to a command. You should be able to hit it
by adding an alias "u" to the "identify" command - not that that makes a
lot of sense...
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 17 Feb 2006 17:41:23 -0600 |
parents | 0902ffece4b4 |
children | ba198d17eea9 |
rev | line source |
---|---|
578 | 1 #!/bin/sh |
2 | |
3 hg init | |
4 echo 123 > a | |
5 hg add a | |
749
7e4843b7efd2
Update tests to use commit -m and default -u
mpm@selenic.com
parents:
578
diff
changeset
|
6 hg commit -m "first" -d "0 0" a |
578 | 7 mkdir sub |
8 echo 321 > sub/b | |
9 hg add sub/b | |
749
7e4843b7efd2
Update tests to use commit -m and default -u
mpm@selenic.com
parents:
578
diff
changeset
|
10 hg commit -m "second" -d "0 0" sub/b |
578 | 11 cat sub/b |
12 hg co 0 | |
13 cat sub/b | |
14 ls sub | |
15 | |
16 true |