Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/SubrepoManager.java @ 295:981f9f50bb6c
Issue 11: Error log facility. SessionContext to share common facilities
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Fri, 16 Sep 2011 05:35:32 +0200 |
| parents | df9d2854d3d6 |
| children | a0864b2892cd |
comparison
equal
deleted
inserted
replaced
| 294:32890bab7209 | 295:981f9f50bb6c |
|---|---|
| 25 import java.util.HashMap; | 25 import java.util.HashMap; |
| 26 import java.util.LinkedList; | 26 import java.util.LinkedList; |
| 27 import java.util.List; | 27 import java.util.List; |
| 28 import java.util.Map; | 28 import java.util.Map; |
| 29 | 29 |
| 30 import org.tmatesoft.hg.repo.HgInternals; | |
| 30 import org.tmatesoft.hg.repo.HgRepository; | 31 import org.tmatesoft.hg.repo.HgRepository; |
| 31 import org.tmatesoft.hg.repo.HgSubrepoLocation; | 32 import org.tmatesoft.hg.repo.HgSubrepoLocation; |
| 32 | 33 |
| 33 /** | 34 /** |
| 34 * | 35 * |
| 59 state = Collections.emptyMap(); | 60 state = Collections.emptyMap(); |
| 60 } | 61 } |
| 61 BufferedReader br = new BufferedReader(new FileReader(hgsubFile)); | 62 BufferedReader br = new BufferedReader(new FileReader(hgsubFile)); |
| 62 return readConfig(br, state); | 63 return readConfig(br, state); |
| 63 } catch (IOException ex) { | 64 } catch (IOException ex) { |
| 64 ex.printStackTrace(); // XXX log. Generally, shall not happen | 65 HgInternals.getContext(repo).getLog().error(getClass(), ex, "Subrepo state read failed"); |
| 65 } | 66 } |
| 66 return Collections.emptyList(); | 67 return Collections.emptyList(); |
| 67 } | 68 } |
| 68 | 69 |
| 69 private List<HgSubrepoLocation> readConfig(BufferedReader br, Map<String, String> substate) throws IOException { | 70 private List<HgSubrepoLocation> readConfig(BufferedReader br, Map<String, String> substate) throws IOException { |
