Mercurial > hg4j
comparison src/com/tmate/hgkit/ll/Changelog.java @ 21:e929cecae4e1
Refactor to move revlog content to base class
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 05 Jan 2011 04:10:28 +0100 |
parents | 24bb4f365164 |
children | b01500fe2604 |
comparison
equal
deleted
inserted
replaced
20:11cfabe692b3 | 21:e929cecae4e1 |
---|---|
1 /** | 1 /* |
2 * Copyright (c) 2010 Artem Tikhomirov | 2 * Copyright (c) 2010, 2011 Artem Tikhomirov |
3 */ | 3 */ |
4 package com.tmate.hgkit.ll; | 4 package com.tmate.hgkit.ll; |
5 | 5 |
6 import java.util.ArrayList; | 6 import java.util.ArrayList; |
7 import java.util.Arrays; | 7 import java.util.Arrays; |
11 * Representation of the Mercurial changelog file (list of ChangeSets) | 11 * Representation of the Mercurial changelog file (list of ChangeSets) |
12 * @author artem | 12 * @author artem |
13 */ | 13 */ |
14 public class Changelog extends Revlog { | 14 public class Changelog extends Revlog { |
15 | 15 |
16 private final RevlogStream content; | |
17 | |
18 /*package-local*/ Changelog(HgRepository hgRepo, RevlogStream content) { | 16 /*package-local*/ Changelog(HgRepository hgRepo, RevlogStream content) { |
19 super(hgRepo); | 17 super(hgRepo, content); |
20 this.content = content; | |
21 } | 18 } |
22 | 19 |
23 public void all(final Changeset.Inspector inspector) { | 20 public void all(final Changeset.Inspector inspector) { |
24 Revlog.Inspector i = new Revlog.Inspector() { | 21 Revlog.Inspector i = new Revlog.Inspector() { |
25 | 22 |