revert: revert items in reverse-order to handle added directories
revert: do smart revert on items with modified properties as well