Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 49:26e3eeaa3962 | 50:f1db8610da62 |
|---|---|
| 14 // temp aux marker method | 14 // temp aux marker method |
| 15 public static IllegalStateException notImplemented() { | 15 public static IllegalStateException notImplemented() { |
| 16 return new IllegalStateException("Not implemented"); | 16 return new IllegalStateException("Not implemented"); |
| 17 } | 17 } |
| 18 | 18 |
| 19 | |
| 20 private Changelog changelog; | 19 private Changelog changelog; |
| 21 private HgManifest manifest; | 20 private HgManifest manifest; |
| 21 private HgTags tags; | |
| 22 | 22 |
| 23 private boolean isInvalid = true; | 23 private boolean isInvalid = true; |
| 24 | 24 |
| 25 public boolean isInvalid() { | 25 public boolean isInvalid() { |
| 26 return this.isInvalid; | 26 return this.isInvalid; |
| 44 RevlogStream content = resolve(toStoragePath("00manifest.i", false)); | 44 RevlogStream content = resolve(toStoragePath("00manifest.i", false)); |
| 45 this.manifest = new HgManifest(this, content); | 45 this.manifest = new HgManifest(this, content); |
| 46 } | 46 } |
| 47 return this.manifest; | 47 return this.manifest; |
| 48 } | 48 } |
| 49 | |
| 50 public final HgTags getTags() { | |
| 51 if (tags == null) { | |
| 52 tags = createTags(); | |
| 53 } | |
| 54 return tags; | |
| 55 } | |
| 56 | |
| 57 protected abstract HgTags createTags(); | |
| 49 | 58 |
| 50 public abstract HgDataFile getFileNode(String path); | 59 public abstract HgDataFile getFileNode(String path); |
| 51 | 60 |
| 52 public abstract String getLocation(); | 61 public abstract String getLocation(); |
| 53 | 62 |
