Patchwork D5921: scmutil: remove special handling of pats==("", ) in matchandpats() (API)

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2019, 1:59 a.m.
Message ID <d25dbe443ae7de57dbf69498ae76812f@localhost.localdomain>
Download mbox | patch
Permalink /patch/38652/
State Not Applicable
Headers show

Comments

phabricator - Feb. 11, 2019, 1:59 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa950b65cbe1b: scmutil: remove special handling of pats==(&quot;&quot;,) 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

Patch

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':