changeset 4728:7bb5bcb089e3

Added test for earlygetopt fixes (36d23de02da1 and 79cc512a34ed)
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 26 Jun 2007 18:39:28 +0200
parents 79cc512a34ed
children 9881abfc0e44
files tests/test-globalopts tests/test-globalopts.out
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-globalopts
+++ b/tests/test-globalopts
@@ -28,6 +28,15 @@ hg --repository b tip
 echo %% abbrev of long option
 hg --repo c tip
 
+echo "%% earlygetopt with duplicate options (36d23de02da1)"
+hg --cwd a --cwd b --cwd c tip
+hg --repo c --repository b -R a tip
+
+echo "%% earlygetopt short option without spaces (79cc512a34ed)"
+hg -qR a tip
+hg -q -Rb tip
+hg -qRc tip
+
 echo %% --cwd
 hg --cwd a parents
 
--- a/tests/test-globalopts.out
+++ b/tests/test-globalopts.out
@@ -32,6 +32,24 @@ user:        test
 date:        Thu Jan 01 00:00:01 1970 +0000
 summary:     b
 
+%% earlygetopt with duplicate options (36d23de02da1)
+changeset:   1:b6c483daf290
+tag:         tip
+parent:      -1:000000000000
+user:        test
+date:        Thu Jan 01 00:00:01 1970 +0000
+summary:     b
+
+changeset:   0:8580ff50825a
+tag:         tip
+user:        test
+date:        Thu Jan 01 00:00:01 1970 +0000
+summary:     a
+
+%% earlygetopt short option without spaces (79cc512a34ed)
+0:8580ff50825a
+0:b6c483daf290
+1:b6c483daf290
 %% --cwd
 changeset:   0:8580ff50825a
 tag:         tip