# HG changeset patch # User Martin von Zweigbergk # Date 2018-09-28 07:00:36 # Node ID 277a6fb460a68543516572df2bc560b571379a39 # Parent cb9b23ec093c74bc9876866e66a85c166c7197af tests: add test showing that paths outside narrowspec are not added We had a test that shows that trying to explicitly add a file outside the narrowspec results in an error, but we didn't have a test that shows that paths from subdirectories outside the narrowspec are not added (on e.g. `hg add .`) but silently ignored. Differential Revision: https://phab.mercurial-scm.org/D4822 diff --git a/tests/test-narrow-commit.t b/tests/test-narrow-commit.t --- a/tests/test-narrow-commit.t +++ b/tests/test-narrow-commit.t @@ -53,6 +53,7 @@ Can not modify dirstate outside * matcher: f inside/f1 inside/f1 + $ hg add . $ hg add outside/f1 abort: cannot track 'outside/f1' - it is outside the narrow clone [255]