Mercurial > jhg
diff src/com/tmate/hgkit/ll/HgRepository.java @ 50:f1db8610da62
Log to consult (placeholder, for now) class to find out associated tags
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 15 Jan 2011 01:41:49 +0100 |
parents | 70dafe20931d |
children | 05829a70b30b |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/HgRepository.java Sat Jan 15 01:15:38 2011 +0100 +++ b/src/com/tmate/hgkit/ll/HgRepository.java Sat Jan 15 01:41:49 2011 +0100 @@ -16,9 +16,9 @@ return new IllegalStateException("Not implemented"); } - private Changelog changelog; private HgManifest manifest; + private HgTags tags; private boolean isInvalid = true; @@ -46,6 +46,15 @@ } return this.manifest; } + + public final HgTags getTags() { + if (tags == null) { + tags = createTags(); + } + return tags; + } + + protected abstract HgTags createTags(); public abstract HgDataFile getFileNode(String path);