comparison src/org/tmatesoft/hg/repo/HgRepository.java @ 104:54562de502f7

Preliminary tags implementation
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 28 Jan 2011 17:51:54 +0100
parents a3a2e5deb320
children 46291ec605a0
comparison
equal deleted inserted replaced
103:0b2dcca7de9f 104:54562de502f7
117 } 117 }
118 118
119 public final HgTags getTags() { 119 public final HgTags getTags() {
120 if (tags == null) { 120 if (tags == null) {
121 tags = new HgTags(); 121 tags = new HgTags();
122 try {
123 tags.readGlobal(new File(repoDir.getParentFile(), ".hgtags"));
124 tags.readLocal(new File(repoDir, "localtags"));
125 } catch (IOException ex) {
126 ex.printStackTrace(); // FIXME log or othewise report
127 }
122 } 128 }
123 return tags; 129 return tags;
124 } 130 }
125 131
126 public HgDataFile getFileNode(String path) { 132 public HgDataFile getFileNode(String path) {