mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
最後に追加したLogを削除するメソッド追加
This commit is contained in:
parent
383b34c3d2
commit
113bca723f
|
@ -16,6 +16,8 @@ public interface LacertaVcs {
|
||||||
|
|
||||||
public void deletePage(int index);
|
public void deletePage(int index);
|
||||||
|
|
||||||
|
public void undo();
|
||||||
|
|
||||||
public void createDocument(String documentId);
|
public void createDocument(String documentId);
|
||||||
|
|
||||||
public void generateRevisionAtCurrent(String message);
|
public void generateRevisionAtCurrent(String message);
|
||||||
|
|
|
@ -67,6 +67,11 @@ public class LacertaVcsImpl implements LacertaVcs {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void undo() {
|
||||||
|
database.vcsLogDao().deleteLatestByDocumentId(documentId);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void createDocument(String documentId) {
|
public void createDocument(String documentId) {
|
||||||
logger.debug(TAG, "createDocument");
|
logger.debug(TAG, "createDocument");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user