comparison tests/test-cat.t @ 35006:8154119ed236

cat: test output path behvaior when target path does not exist In the next patch, we will change the behavior of the cat command to create output file parent directories before attempting to write the output file. This patch documents the current unfortunate behavior. Differential Revision: https://phab.mercurial-scm.org/D1331
author Ryan McElroy <rmcelroy@fb.com>
date Tue, 07 Nov 2017 13:46:15 -0800
parents 746e12a767b3
children 407ec7f3ff02
comparison
equal deleted inserted replaced
35005:aad6b9fdfc75 35006:8154119ed236
117 Environment variable visibility can be explicit 117 Environment variable visibility can be explicit
118 118
119 $ PATTERN='t4' hg log -r '.' -T "{envvars % '{key} -> {value}\n'}" \ 119 $ PATTERN='t4' hg log -r '.' -T "{envvars % '{key} -> {value}\n'}" \
120 > --config "experimental.exportableenviron=PATTERN" 120 > --config "experimental.exportableenviron=PATTERN"
121 PATTERN -> t4 121 PATTERN -> t4
122
123 Test behavior of output when directory structure does not already exist
124
125 $ mkdir foo
126 $ echo a > foo/a
127 $ hg add foo/a
128 $ hg commit -qm "add foo/a"
129 $ mkdir output
130 $ hg cat --output "output/%p" foo/a
131 abort: No such file or directory: output/foo/a
132 [255]