Mercurial > jhg
comparison src/com/tmate/hgkit/ll/HgRepository.java @ 3:24bb4f365164
Rudimentary log functionality with basic infrastructure is in place
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Mon, 20 Dec 2010 02:50:36 +0100 |
| parents | 08db726a0fb7 |
| children | fc265ddeab26 |
comparison
equal
deleted
inserted
replaced
| 2:08db726a0fb7 | 3:24bb4f365164 |
|---|---|
| 35 } | 35 } |
| 36 | 36 |
| 37 public final Changelog getChangelog() { | 37 public final Changelog getChangelog() { |
| 38 if (this.changelog == null) { | 38 if (this.changelog == null) { |
| 39 // might want delegate to protected createChangelog() some day | 39 // might want delegate to protected createChangelog() some day |
| 40 this.changelog = new Changelog(this); | 40 RevlogStream content = resolve("store/00changelog.i"); // XXX perhaps, knowledge about filenames should be in LocalHgRepo? |
| 41 // TODO init | 41 this.changelog = new Changelog(this, content); |
| 42 } | 42 } |
| 43 return this.changelog; | 43 return this.changelog; |
| 44 } | 44 } |
| 45 | 45 |
| 46 public final HgManifest getManifest() { | 46 public final HgManifest getManifest() { |
| 60 | 60 |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * Perhaps, should be separate interface, like ContentLookup | 63 * Perhaps, should be separate interface, like ContentLookup |
| 64 */ | 64 */ |
| 65 public abstract RevlogStream resolve(String string); | 65 protected abstract RevlogStream resolve(String string); |
| 66 } | 66 } |
