changeset 44563:1922694d638f

tests: remove doctest in narrowspec, it is broken I think every item here is considered incorrect (if we fix doctest to run it), so let's just delete it. Differential Revision: https://phab.mercurial-scm.org/D8279
author Kyle Lippincott <spectral@google.com>
date Thu, 12 Mar 2020 20:08:05 -0700
parents ece43c79333e
children 529cb23155bc
files mercurial/narrowspec.py
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/narrowspec.py	Fri Mar 13 00:41:22 2020 +0100
+++ b/mercurial/narrowspec.py	Thu Mar 12 20:08:05 2020 -0700
@@ -233,21 +233,6 @@
     :param repo_includes: repo includes
     :param repo_excludes: repo excludes
     :return: include patterns, exclude patterns, and invalid include patterns.
-
-    >>> restrictpatterns({'f1','f2'}, {}, ['f1'], [])
-    (set(['f1']), {}, [])
-    >>> restrictpatterns({'f1'}, {}, ['f1','f2'], [])
-    (set(['f1']), {}, [])
-    >>> restrictpatterns({'f1/fc1', 'f3/fc3'}, {}, ['f1','f2'], [])
-    (set(['f1/fc1']), {}, [])
-    >>> restrictpatterns({'f1_fc1'}, {}, ['f1','f2'], [])
-    ([], set(['path:.']), [])
-    >>> restrictpatterns({'f1/../f2/fc2'}, {}, ['f1','f2'], [])
-    (set(['f2/fc2']), {}, [])
-    >>> restrictpatterns({'f1/../f3/fc3'}, {}, ['f1','f2'], [])
-    ([], set(['path:.']), [])
-    >>> restrictpatterns({'f1/$non_exitent_var'}, {}, ['f1','f2'], [])
-    (set(['f1/$non_exitent_var']), {}, [])
     """
     res_excludes = set(req_excludes)
     res_excludes.update(repo_excludes)