Factor out commit(MetaDataUpdate md) from ChangeUpdate
I missed this when factoring out AbstractChangeUpdate from ChangeUpdate. Change-Id: I37d9fe82e1dbad64ef4e0733a4938053957e53fa
This commit is contained in:
@@ -136,6 +136,11 @@ public abstract class AbstractChangeUpdate extends VersionedMetaData {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RevCommit commit(MetaDataUpdate md) throws IOException {
|
||||||
|
throw new UnsupportedOperationException("use commit()");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onLoad() throws IOException, ConfigInvalidException {
|
protected void onLoad() throws IOException, ConfigInvalidException {
|
||||||
//Do nothing; just reads the current revision.
|
//Do nothing; just reads the current revision.
|
||||||
|
|||||||
@@ -232,11 +232,6 @@ public class ChangeUpdate extends AbstractChangeUpdate {
|
|||||||
return noteMap.writeTree(inserter);
|
return noteMap.writeTree(inserter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public RevCommit commit(MetaDataUpdate md) throws IOException {
|
|
||||||
throw new UnsupportedOperationException("use commit()");
|
|
||||||
}
|
|
||||||
|
|
||||||
public RevCommit commit() throws IOException {
|
public RevCommit commit() throws IOException {
|
||||||
BatchMetaDataUpdate batch = openUpdate();
|
BatchMetaDataUpdate batch = openUpdate();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user