Applied patch in google code issue #2445 to support rhodecode integration