comparison tests/test-globalopts @ 4732:b0520e3903fe

Disallow short earlygetop option combined with other short options While "hg commit -qRfoo" can be read as "--quiet --repository foo", "hg commit -mRfoo" should be "--message Rfoo".
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 27 Jun 2007 20:37:33 +0200
parents 7bb5bcb089e3
children 9ac493f12901
comparison
equal deleted inserted replaced
4731:1d5a2ee683b0 4732:b0520e3903fe
30 30
31 echo "%% earlygetopt with duplicate options (36d23de02da1)" 31 echo "%% earlygetopt with duplicate options (36d23de02da1)"
32 hg --cwd a --cwd b --cwd c tip 32 hg --cwd a --cwd b --cwd c tip
33 hg --repo c --repository b -R a tip 33 hg --repo c --repository b -R a tip
34 34
35 echo "%% earlygetopt short option without spaces (79cc512a34ed)" 35 echo "%% earlygetopt short option without following space"
36 hg -qR a tip
37 hg -q -Rb tip 36 hg -q -Rb tip
38 hg -qRc tip
39 37
40 echo %% --cwd 38 echo %% --cwd
41 hg --cwd a parents 39 hg --cwd a parents
42 40
43 echo %% -y/--noninteractive - just be sure it is parsed 41 echo %% -y/--noninteractive - just be sure it is parsed