# HG changeset patch # User Martin von Zweigbergk # Date 2019-02-09 22:37:58 # Node ID a950b65cbe1b30548aede39feb1fe1d32327e053 # Parent 0ed7a8ac5711e5c3243546c3aefe009a82a2da91 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 diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -795,8 +795,6 @@ def matchandpats(ctx, pats=(), opts=None '''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':