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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sun Feb 10 20:59:42 EST 2019


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

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



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list