Use PatchSet.Id rather than int to enumerate PatchSets

There is no assurance that patch sets don't have a gap in their
numbering.  A crashed update may have allocated a patch set number,
but not actually stored it on the change.

Instead use the entire PatchSet.Id object for compares, and keep
the order of patch sets in a list so they can be enumerated through
during the next/previous traversals.

Change-Id: I44be87ba1b6413b338a58d3147f87cd8299a62b4
Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed