changeset 39936:277a6fb460a6

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
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 28 Sep 2018 00:00:36 -0700
parents cb9b23ec093c
children 84092edd5c88
files tests/test-narrow-commit.t
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-narrow-commit.t	Mon Oct 01 09:05:41 2018 -0400
+++ b/tests/test-narrow-commit.t	Fri Sep 28 00:00:36 2018 -0700
@@ -53,6 +53,7 @@
   * matcher:
   <includematcher includes='(?:(?:|.*/)f1(?:/|$))'>
   f  inside/f1  inside/f1
+  $ hg add .
   $ hg add outside/f1
   abort: cannot track 'outside/f1' - it is outside the narrow clone
   [255]