Mercurial > public > mercurial-scm > hg-stable
diff tests/test-import-bypass.t @ 29904:50f2966f86ca
import: report directory-relative paths in error messages (issue5224)
Import uses paths relative to the root of the repository, so when
user imports patch with paths relative to the current working directory
import aborts with 'unable to find file for patching'.
This patch improves this situation by warning the user that paths are
relative to the root of repository when patching fails.
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Fri, 26 Aug 2016 12:48:20 +0200 |
parents | 76225ab5a5da |
children | eb586ed5d8ce |
line wrap: on
line diff
--- a/tests/test-import-bypass.t Mon Sep 05 08:29:36 2016 +0000 +++ b/tests/test-import-bypass.t Fri Aug 26 12:48:20 2016 +0200 @@ -41,6 +41,7 @@ $ hg import --bypass ../test.diff applying ../test.diff unable to find 'a' for patching + (use '--prefix' to apply patch relative to the current directory) abort: patch failed to apply [255] $ hg st