# HG changeset patch # User Kyle Lippincott # Date 2020-03-13 03:08:05 # Node ID 1922694d638fbc854c0e9bd87b8b9d0b4e0ba99b # Parent ece43c79333e67a71e1e2a98709c51ff509e3be8 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 diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py --- a/mercurial/narrowspec.py +++ b/mercurial/narrowspec.py @@ -233,21 +233,6 @@ def restrictpatterns(req_includes, req_e :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)