added support for rev branch when using deepth parameter