private int FindRevisionIndex(string revision) { int? revIdx = Revisions.TryGetRevisionIndex(revision); return revIdx.HasValue ? revIdx.Value : -1; }