diff src/com/tmate/hgkit/ll/HgRepository.java @ 0:dbd663faec1f

Basic changelog parsing
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 17 Dec 2010 19:05:59 +0100
parents
children a3576694a4d1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/com/tmate/hgkit/ll/HgRepository.java	Fri Dec 17 19:05:59 2010 +0100
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) 2010 Artem Tikhomirov 
+ */
+package com.tmate.hgkit.ll;
+
+/**
+ * @author artem
+ *
+ */
+public class HgRepository {
+
+	
+	private Changelog changelog;
+
+	public void log() {
+		Changelog clog = getChangelog();
+		assert clog != null;
+		// TODO get data to the client
+	}
+
+	/**
+	 * @return
+	 */
+	private Changelog getChangelog() {
+		if (this.changelog == null) {
+			this.changelog = new Changelog();
+			// TODO init
+		}
+		return this.changelog;
+	}
+}