Mercurial > hg
changeset 25166:7f53f305d4a6
ignore: rename readignorefile to readpatternfile
A future commit will move the readignorefile logic into match.py so it can be
used from general match rules. Let's rename the function to represent this new
behavior.
author | Durham Goode <durham@fb.com> |
---|---|
date | Sat, 16 May 2015 15:45:46 -0700 |
parents | 581e2066d802 |
children | 6f7048cc2419 |
files | mercurial/ignore.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ignore.py Sat May 16 15:45:06 2015 -0700 +++ b/mercurial/ignore.py Sat May 16 15:45:46 2015 -0700 @@ -11,7 +11,7 @@ _commentre = None -def readignorefile(filepath, warn): +def readpatternfile(filepath, warn): '''parse a pattern file, returning a list of patterns. These patterns should be given to compile() to be validated and converted into a match function.''' @@ -64,7 +64,7 @@ if f in pats: continue try: - pats[f] = readignorefile(f, warn) + pats[f] = readpatternfile(f, warn) except IOError, inst: warn(_("skipping unreadable ignore file '%s': %s\n") % (f, inst.strerror))