Add get_latest_patcheset function

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>