diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepository.java	Fri Jan 28 04:57:46 2011 +0100
+++ b/src/org/tmatesoft/hg/repo/HgRepository.java	Fri Jan 28 17:51:54 2011 +0100
@@ -119,6 +119,12 @@
 	public final HgTags getTags() {
 		if (tags == null) {
 			tags = new HgTags();
+			try {
+				tags.readGlobal(new File(repoDir.getParentFile(), ".hgtags"));
+				tags.readLocal(new File(repoDir, "localtags"));
+			} catch (IOException ex) {
+				ex.printStackTrace(); // FIXME log or othewise report
+			}
 		}
 		return tags;
 	}