Support branch in fetch_revision method

Besides the fetch_revision method only working for a scm set to :git it also does not support the set branch.