updates rev and comments as soon as commit