versioning revisions number should be calculated properly because revisi...

...on documents might be replicated