diff -r ce20caecacbd -r 8301741e1f89 hgext/narrow/narrowcommands.py --- a/hgext/narrow/narrowcommands.py Tue Sep 11 10:59:21 2018 -0700 +++ b/hgext/narrow/narrowcommands.py Tue Sep 11 11:47:10 2018 -0700 @@ -102,6 +102,9 @@ raise error.Abort(_("cannot specify other files using '%include' in" " narrowspec")) + narrowspec.validatepatterns(includes) + narrowspec.validatepatterns(excludes) + # narrowspec is passed so we should assume that user wants narrow clone opts_narrow = True opts['include'].extend(includes)