Skip to content
Snippets Groups Projects
Commit 277a6fb4 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

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
parent cb9b23ec
Branches
Tags
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment