mercurial/scmutil.py
changeset 41676 0531dff73d0b
parent 41666 a950b65cbe1b
child 41684 a8d3a4be066e
equal deleted inserted replaced
41675:ddbebce94665 41676: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     """