Apply CreateBranch
and CreateDocument
operations
This commit is contained in:
parent
30bac17749
commit
900deaab50
5 changed files with 146 additions and 60 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue