Mercurial > hg
comparison tests/test-alias.t @ 23093:a3fee83dba59 stable
tests: use "%HG_ARGS%" in shell alias on Windows instead of "$HG_ARGS"
Before this patch, a part of "test-alias.t" fails unexpectedly on
Windows environment, because "cmd.exe" can't evaluate "$HG_ARGS"
expression in shell alias correctly.
This patch uses "%HG_ARGS%" in shell alias on Windows instead of
"$HG_ARGS" to expand it correctly.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 28 Oct 2014 00:19:18 +0900 |
parents | 55dcc7fb731c |
children | 3bd577a3283e |
comparison
equal
deleted
inserted
replaced
23092:501dc6b1ca78 | 23093:a3fee83dba59 |
---|---|
392 command provided extension, should be aborted. | 392 command provided extension, should be aborted. |
393 | 393 |
394 $ cat >> .hg/hgrc <<EOF | 394 $ cat >> .hg/hgrc <<EOF |
395 > [extensions] | 395 > [extensions] |
396 > hgext.rebase = | 396 > hgext.rebase = |
397 > EOF | |
398 #if windows | |
399 $ cat >> .hg/hgrc <<EOF | |
400 > [alias] | |
401 > rebate = !echo this is %HG_ARGS% | |
402 > EOF | |
403 #else | |
404 $ cat >> .hg/hgrc <<EOF | |
397 > [alias] | 405 > [alias] |
398 > rebate = !echo this is \$HG_ARGS | 406 > rebate = !echo this is \$HG_ARGS |
399 > EOF | 407 > EOF |
408 #endif | |
400 $ hg reba | 409 $ hg reba |
401 hg: command 'reba' is ambiguous: | 410 hg: command 'reba' is ambiguous: |
402 rebase rebate | 411 rebase rebate |
403 [255] | 412 [255] |
404 $ hg rebat | 413 $ hg rebat |