mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
tests: use double quote to quote arguments in hook for portability
On windows, single quote doesn't work as quote character in hook command line, because "cmd.exe" doesn't recognize it as quoting character. And this causes failure of test. This patch uses double quote to quote arguments in hook instead of single quote for portability. Even though single quotes for "[hooks] pretxncommit" in test-clone-pull-corruption.t seems to work correctly (may MinGW sh treat specially ?) AFAIK, this patch also replaces them by double quotes for consistency.
This commit is contained in:
parent
4fc3c4c465
commit
8fe63fa17c
@ -16,7 +16,7 @@ Add a hook to wait 5 seconds and then abort the commit
|
||||
|
||||
$ cd ../corrupted
|
||||
$ echo "[hooks]" >> .hg/hgrc
|
||||
$ echo "pretxncommit = sh -c 'sleep 5; exit 1'" >> .hg/hgrc
|
||||
$ echo 'pretxncommit = sh -c "sleep 5; exit 1"' >> .hg/hgrc
|
||||
|
||||
start a commit...
|
||||
|
||||
|
@ -120,7 +120,7 @@ Test that pending on transaction without changegroup see the normal changegroup(
|
||||
$ cat <<EOF > parent/.hg/hgrc
|
||||
> [hooks]
|
||||
> pretxnchangegroup=
|
||||
> pretxnclose = hg tip -T 'tip: {node|short}\n'
|
||||
> pretxnclose = hg tip -T "tip: {node|short}\n"
|
||||
> [phases]
|
||||
> publishing=False
|
||||
> EOF
|
||||
|
Loading…
Reference in New Issue
Block a user