# HG changeset patch # User Thomas Arendsen Hein # Date 1182875968 -7200 # Node ID 7bb5bcb089e3fc06aaa365d0e40689ce268b3db4 # Parent 79cc512a34edb3fdc6f39183ddb800c2a42bd5a3 Added test for earlygetopt fixes (36d23de02da1 and 79cc512a34ed) diff --git a/tests/test-globalopts b/tests/test-globalopts --- 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 diff --git a/tests/test-globalopts.out b/tests/test-globalopts.out --- 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