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 """ |