Show More
@@ -318,6 +318,15 b' def dispatch(ui, args, argv0=None):' | |||||
318 | fullargs = args |
|
318 | fullargs = args | |
319 | cmd, func, args, options, cmdoptions = parse(ui, args) |
|
319 | cmd, func, args, options, cmdoptions = parse(ui, args) | |
320 |
|
320 | |||
|
321 | if options["config"]: | |||
|
322 | raise util.Abort(_("Option --config may not be abbreviated!")) | |||
|
323 | if options["cwd"]: | |||
|
324 | raise util.Abort(_("Option --cwd may not be abbreviated!")) | |||
|
325 | if options["repository"]: | |||
|
326 | raise util.Abort(_( | |||
|
327 | "Option -R has to be separated from other options (i.e. not -qR) " | |||
|
328 | "and --repository may only be abbreviated as --repo!")) | |||
|
329 | ||||
321 | if options["encoding"]: |
|
330 | if options["encoding"]: | |
322 | util._encoding = options["encoding"] |
|
331 | util._encoding = options["encoding"] | |
323 | if options["encodingmode"]: |
|
332 | if options["encodingmode"]: |
@@ -35,6 +35,14 b' hg --repo c --repository b -R a tip' | |||||
35 | echo "%% earlygetopt short option without following space" |
|
35 | echo "%% earlygetopt short option without following space" | |
36 | hg -q -Rb tip |
|
36 | hg -q -Rb tip | |
37 |
|
37 | |||
|
38 | echo "%% earlygetopt with illegal abbreviations" | |||
|
39 | hg --confi "foo.bar=baz" | |||
|
40 | hg --cw a tip | |||
|
41 | hg --rep a tip | |||
|
42 | hg --repositor a tip | |||
|
43 | hg -qR a tip | |||
|
44 | hg -qRa tip | |||
|
45 | ||||
38 | echo %% --cwd |
|
46 | echo %% --cwd | |
39 | hg --cwd a parents |
|
47 | hg --cwd a parents | |
40 |
|
48 |
@@ -48,6 +48,13 b' summary: a' | |||||
48 |
|
48 | |||
49 | %% earlygetopt short option without following space |
|
49 | %% earlygetopt short option without following space | |
50 | 0:b6c483daf290 |
|
50 | 0:b6c483daf290 | |
|
51 | %% earlygetopt with illegal abbreviations | |||
|
52 | abort: Option --config may not be abbreviated! | |||
|
53 | abort: Option --cwd may not be abbreviated! | |||
|
54 | abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo! | |||
|
55 | abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo! | |||
|
56 | abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo! | |||
|
57 | abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo! | |||
51 | %% --cwd |
|
58 | %% --cwd | |
52 | changeset: 0:8580ff50825a |
|
59 | changeset: 0:8580ff50825a | |
53 | tag: tip |
|
60 | tag: tip |
General Comments 0
You need to be logged in to leave comments.
Login now