Patchwork D1331: cat: test output path behvaior when target path does not exist

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2017, 2:02 p.m.
Message ID <19218f0d258adcd9d7d1f9a9b53e1efd@localhost.localdomain>
Download mbox | patch
Permalink /patch/25448/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2017, 2:02 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8154119ed236: cat: test output path behvaior when target path does not exist (authored by ryanmce, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1331?vs=3325&id=3372

REVISION DETAIL
  https://phab.mercurial-scm.org/D1331

AFFECTED FILES
  tests/test-cat.t

CHANGE DETAILS




To: ryanmce, #hg-reviewers, mbthomas, yuja
Cc: mercurial-devel

Patch

diff --git a/tests/test-cat.t b/tests/test-cat.t
--- a/tests/test-cat.t
+++ b/tests/test-cat.t
@@ -119,3 +119,14 @@ 
   $ PATTERN='t4' hg log -r '.' -T "{envvars % '{key} -> {value}\n'}" \
   >                 --config "experimental.exportableenviron=PATTERN"
   PATTERN -> t4
+
+Test behavior of output when directory structure does not already exist
+
+  $ mkdir foo
+  $ echo a > foo/a
+  $ hg add foo/a
+  $ hg commit -qm "add foo/a"
+  $ mkdir output
+  $ hg cat --output "output/%p" foo/a
+  abort: No such file or directory: output/foo/a
+  [255]