changeset 41666:a950b65cbe1b

scmutil: remove special handling of pats==("",) in matchandpats() (API) I don't know under what circumstances we used to pass that value, but we don't seem to do it now. Differential Revision: https://phab.mercurial-scm.org/D5921
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 09 Feb 2019 14:37:58 -0800
parents 0ed7a8ac5711
children 8fa1a5fb8a28
files mercurial/scmutil.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/scmutil.py	Fri Feb 08 13:33:40 2019 -0800
+++ b/mercurial/scmutil.py	Sat Feb 09 14:37:58 2019 -0800
@@ -795,8 +795,6 @@
     '''Return a matcher and the patterns that were used.
     The matcher will warn about bad matches, unless an alternate badfn callback
     is provided.'''
-    if pats == ("",):
-        pats = []
     if opts is None:
         opts = {}
     if not globbed and default == 'relpath':