##// END OF EJS Templates
Fix tgz archival on Windows....
Fix tgz archival on Windows. Making tgz's on Windows has been broken by 06de65673ec2 due to not being careful enough about binary mode opens.

File last commit:

r4728:7bb5bcb0 default
r4731:1d5a2ee6 default
Show More
test-globalopts
81 lines | 1.4 KiB | text/plain | TextLexer
Vadim Gelfer
add --config global option. allows to set hgrc option on command line....
r2293 #!/bin/sh
hg init a
cd a
echo a > a
hg ci -A -d'1 0' -m a
cd ..
hg init b
cd b
echo b > b
hg ci -A -d'1 0' -m b
cd ..
hg clone a c
cd c
hg pull -f ../b
Alexis S. L. Carvalho
change tests to use simplemerge by default
r4365 hg merge
Vadim Gelfer
add --config global option. allows to set hgrc option on command line....
r2293
cd ..
echo %% -R/--repository
hg -R a tip
hg --repository b tip
echo %% abbrev of long option
hg --repo c tip
Thomas Arendsen Hein
Added test for earlygetopt fixes (36d23de02da1 and 79cc512a34ed)
r4728 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
Vadim Gelfer
add --config global option. allows to set hgrc option on command line....
r2293 echo %% --cwd
hg --cwd a parents
echo %% -y/--noninteractive - just be sure it is parsed
hg --cwd a tip -q --noninteractive
hg --cwd a tip -q -y
echo %% -q/--quiet
hg -R a -q tip
hg -R b -q tip
hg -R c --quiet parents
echo %% -v/--verbose
hg --cwd c head -v
hg --cwd b tip --verbose
echo %% --config
Danek Duvall
Fix some tests for portability.
r2843 hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo
Vadim Gelfer
add --config global option. allows to set hgrc option on command line....
r2293 hg --cwd c --config '' tip -q
hg --cwd c --config a.b tip -q
hg --cwd c --config a tip -q
hg --cwd c --config a.= tip -q
hg --cwd c --config .b= tip -q
echo %% --debug
hg --cwd c log --debug
echo %% --traceback
hg --cwd c --config x --traceback tip 2>&1 | grep -i 'traceback'
echo %% --time
hg --cwd a --time tip 2>&1 | grep '^Time:' | sed 's/[0-9][0-9]*/x/g'
echo %% --version
Sascha Wilde
Workaround to work with less sophisticated sed versions....
r2528 hg --version -q | sed 's/version [^)]*/version xxx/'
Vadim Gelfer
add --config global option. allows to set hgrc option on command line....
r2293
echo %% -h/--help
hg -h
hg --help
echo %% not tested: --debugger