use the hgsubversion package instead of the pip