A revision should reflect the state of the DB as it was when doing the commit. So at revision 2 in the given example the reference to B should be null, as B was deleted at that time.