comparison src/org/tmatesoft/hg/repo/HgIgnore.java @ 225:fad70a9e6c7f

Close stream after reading .hgignore
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 25 May 2011 05:13:43 +0200
parents 8248aae33f7d
children 7af843ecc378
comparison
equal deleted inserted replaced
224:7fe5982bcac0 225:fad70a9e6c7f
74 line = glob2regex(line); 74 line = glob2regex(line);
75 } 75 }
76 result.add(Pattern.compile(line)); // case-sensitive 76 result.add(Pattern.compile(line)); // case-sensitive
77 } 77 }
78 } 78 }
79 fr.close();
79 result.trimToSize(); 80 result.trimToSize();
80 entries = result; 81 entries = result;
81 } 82 }
82 83
83 // note, #isIgnored(), even if queried for directories and returned positive reply, may still get 84 // note, #isIgnored(), even if queried for directories and returned positive reply, may still get