public override void CheckRevision(RevisionId revision, PluginProfileErrorCollection errors) { MercurialRevisionId revisionId = revision; if (revisionId.Time > MercurialRevisionId.UtcTimeMax) { _errorResolver.HandleConnectionError(new InvalidRevisionException(), errors); } }
public RevisionId ConvertToRevisionId(string startRevision) { DateTime startDate; if (!DateTime.TryParse(startRevision, CultureInfo.InvariantCulture.DateTimeFormat, DateTimeStyles.AdjustToUniversal, out startDate)) throw new FormatException("StartRevision argument is in invalid datetime format."); var revisionId = new MercurialRevisionId() { Time = startDate }; return revisionId; }
public RevisionId ConvertToRevisionId(string startRevision) { DateTime startDate; if (!DateTime.TryParse(startRevision, CultureInfo.InvariantCulture.DateTimeFormat, DateTimeStyles.AdjustToUniversal, out startDate)) { throw new FormatException("StartRevision argument is in invalid datetime format."); } var revisionId = new MercurialRevisionId() { Time = startDate }; return(revisionId); }
public ICompareRevisionSecondArg Is(RevisionId firstArg) { _firstArg = firstArg; return this; }
public ICompareRevisionSecondArg Does(RevisionId firstArg) { _firstArg = firstArg; return(this); }