You can't with current API, need to create a new getHeadRev() method with additional parameter