Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 0:dbd663faec1f | 1:a3576694a4d1 |
|---|---|
| 1 /** | 1 /** |
| 2 * Copyright (c) 2010 Artem Tikhomirov | 2 * Copyright (c) 2010 Artem Tikhomirov |
| 3 */ | 3 */ |
| 4 package com.tmate.hgkit.ll; | 4 package com.tmate.hgkit.ll; |
| 5 | 5 |
| 6 | |
| 6 /** | 7 /** |
| 7 * @author artem | 8 * @author artem |
| 8 * | 9 * |
| 9 */ | 10 */ |
| 10 public class HgRepository { | 11 public abstract class HgRepository { |
| 11 | 12 |
| 12 | 13 |
| 13 private Changelog changelog; | 14 private Changelog changelog; |
| 15 private boolean isInvalid = true; | |
| 16 | |
| 17 public boolean isInvalid() { | |
| 18 return this.isInvalid; | |
| 19 } | |
| 20 | |
| 21 protected void setInvalid(boolean invalid) { | |
| 22 isInvalid = invalid; | |
| 23 } | |
| 14 | 24 |
| 15 public void log() { | 25 public void log() { |
| 16 Changelog clog = getChangelog(); | 26 Changelog clog = getChangelog(); |
| 17 assert clog != null; | 27 assert clog != null; |
| 18 // TODO get data to the client | 28 // TODO get data to the client |
| 26 this.changelog = new Changelog(); | 36 this.changelog = new Changelog(); |
| 27 // TODO init | 37 // TODO init |
| 28 } | 38 } |
| 29 return this.changelog; | 39 return this.changelog; |
| 30 } | 40 } |
| 41 | |
| 42 public abstract String getLocation(); | |
| 31 } | 43 } |
