Feature/470 simplify finding revision nr

Fixes #470