Mercurial > hg-stable
comparison mercurial/scmutil.py @ 41687:0531dff73d0b
match: delete unused root and cwd arguments from {always,never,exact}() (API)
Differential Revision: https://phab.mercurial-scm.org/D5930
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 09 Feb 2019 22:50:53 -0800 |
parents | a950b65cbe1b |
children | a8d3a4be066e |
comparison
equal
deleted
inserted
replaced
41686:ddbebce94665 | 41687:0531dff73d0b |
---|---|
819 '''Return a matcher that will warn about bad matches.''' | 819 '''Return a matcher that will warn about bad matches.''' |
820 return matchandpats(ctx, pats, opts, globbed, default, badfn=badfn)[0] | 820 return matchandpats(ctx, pats, opts, globbed, default, badfn=badfn)[0] |
821 | 821 |
822 def matchall(repo): | 822 def matchall(repo): |
823 '''Return a matcher that will efficiently match everything.''' | 823 '''Return a matcher that will efficiently match everything.''' |
824 return matchmod.always(repo.root, repo.getcwd()) | 824 return matchmod.always() |
825 | 825 |
826 def matchfiles(repo, files, badfn=None): | 826 def matchfiles(repo, files, badfn=None): |
827 '''Return a matcher that will efficiently match exactly these files.''' | 827 '''Return a matcher that will efficiently match exactly these files.''' |
828 return matchmod.exact(repo.root, repo.getcwd(), files, badfn=badfn) | 828 return matchmod.exact(files, badfn=badfn) |
829 | 829 |
830 def parsefollowlinespattern(repo, rev, pat, msg): | 830 def parsefollowlinespattern(repo, rev, pat, msg): |
831 """Return a file name from `pat` pattern suitable for usage in followlines | 831 """Return a file name from `pat` pattern suitable for usage in followlines |
832 logic. | 832 logic. |
833 """ | 833 """ |