Add a convenience method for getting the next snapshot number
Add support for parsing checkout command