Fix compatibilty layer for `raw' commands

A raw command must contain the new revision of the document.