Mercurial > jhg
view src/com/tmate/hgkit/ll/HgRepository.java @ 1:a3576694a4d1
Repository detection from local/specified directory
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 18 Dec 2010 05:47:35 +0100 |
parents | dbd663faec1f |
children | 08db726a0fb7 |
line wrap: on
line source
/** * Copyright (c) 2010 Artem Tikhomirov */ package com.tmate.hgkit.ll; /** * @author artem * */ public abstract class HgRepository { private Changelog changelog; private boolean isInvalid = true; public boolean isInvalid() { return this.isInvalid; } protected void setInvalid(boolean invalid) { isInvalid = invalid; } 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; } public abstract String getLocation(); }