private string DescribeRevision([CanBeNull] ObjectId objectId, int maxLength = 0) { if (objectId == null) { // No parent at all, present as working directory return(Strings.Workspace); } var revision = _revisionGrid.GetRevision(objectId); if (revision == null) { return(objectId.ToShortString(length: 8)); } return(_revisionGrid.DescribeRevision(revision, maxLength)); }