Record PhabricatorDiffs and prevent duplication