Apply CreateBranch and CreateDocument operations

This commit is contained in:
Antonio Scandurra 2023-07-20 11:40:39 +02:00
parent 30bac17749
commit 900deaab50
5 changed files with 146 additions and 60 deletions

View file

@ -142,7 +142,7 @@ impl Operation {
}
}
pub fn revision(&self) -> &RevisionId {
pub fn parent(&self) -> &RevisionId {
match self {
Operation::CreateDocument(op) => &op.parent,
Operation::Edit(op) => &op.parent,