#2429: applied revision-support.patch

http://trac-hacks.org/attachment/ticket/2429/revision-support.patch
#2429: small tweaks