Exemple #1
0
        public RevisionItem(GitRevision revision)
        {
            if (revision == null)
                throw new ArgumentNullException("revision");

            _revision = revision;
        }
        private void UpdateGraph(GitRevision rev)
        {
            if (rev == null)
                throw new ArgumentNullException("rev");

            DvcsGraph.DataType dataType;

            if (String.Equals(rev.Revision, CurrentCheckout, StringComparison.OrdinalIgnoreCase))
                dataType = DvcsGraph.DataType.Active;
            else if (rev.Heads.Count > 0)
                dataType = DvcsGraph.DataType.Special;
            else
                dataType = DvcsGraph.DataType.Normal;

            Add(rev.Revision, rev.ParentRevisions, dataType, rev);
        }
 public void SetInitialRevision(GitRevision initialSelectedRevision)
 {
     _initialSelectedRevision = initialSelectedRevision != null ? initialSelectedRevision.Revision : null;
 }