Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgFileInformer.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 | 6dbbc53fc46d |
children | 5f9073eabf06 |
comparison
equal
deleted
inserted
replaced
294:32890bab7209 | 295:981f9f50bb6c |
---|---|
16 */ | 16 */ |
17 package org.tmatesoft.hg.core; | 17 package org.tmatesoft.hg.core; |
18 | 18 |
19 import org.tmatesoft.hg.internal.ManifestRevision; | 19 import org.tmatesoft.hg.internal.ManifestRevision; |
20 import org.tmatesoft.hg.repo.HgDataFile; | 20 import org.tmatesoft.hg.repo.HgDataFile; |
21 import org.tmatesoft.hg.repo.HgInternals; | |
21 import org.tmatesoft.hg.repo.HgRepository; | 22 import org.tmatesoft.hg.repo.HgRepository; |
22 import org.tmatesoft.hg.util.Path; | 23 import org.tmatesoft.hg.util.Path; |
23 | 24 |
24 /** | 25 /** |
25 * Primary purpose is to provide information about file revisions at specific changeset. Multiple {@link #check(Path)} calls | 26 * Primary purpose is to provide information about file revisions at specific changeset. Multiple {@link #check(Path)} calls |
112 dataFile = repo.getFileNode(file); | 113 dataFile = repo.getFileNode(file); |
113 toExtract = cachedManifest.nodeid(file); | 114 toExtract = cachedManifest.nodeid(file); |
114 } | 115 } |
115 } | 116 } |
116 } catch (HgDataStreamException ex) { | 117 } catch (HgDataStreamException ex) { |
117 ex.printStackTrace(); // XXX log(INFO) | 118 HgInternals.getContext(repo).getLog().warn(getClass(), ex, "Follow copy/rename failed"); |
118 // ignore now, however if there's IStatus retval, might report error with reasonable explanation. | 119 // ignore now, however if there's IStatus retval, might report error with reasonable explanation. |
119 // Perhaps, may add a String reason() method with such info? | 120 // Perhaps, may add a String reason() method with such info? |
120 } | 121 } |
121 checked = true; | 122 checked = true; |
122 if (toExtract != null) { | 123 if (toExtract != null) { |