hgext/narrow/narrowcommands.py
changeset 39541 8301741e1f89
parent 39532 55eea29833d2
child 39544 10a8472f6662
--- 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)