From patchwork Mon Feb 11 01:59:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D5921: scmutil: remove special handling of pats==("", ) in matchandpats() (API) From: phabricator X-Patchwork-Id: 38652 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 11 Feb 2019 01:59:42 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGa950b65cbe1b: scmutil: remove special handling of pats==("",) in matchandpats() (API) (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5921?vs=14002&id=14007 REVISION DETAIL https://phab.mercurial-scm.org/D5921 AFFECTED FILES mercurial/scmutil.py CHANGE DETAILS To: martinvonz, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -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':