Beispiel #1
0
        public override bool Equals(object o)
        {
            var  other  = o as RevisionInternal;
            bool result = false;

            if (other != null)
            {
                if (_docId.Equals(other._docId) && _revId.Equals(other._revId))
                {
                    result = true;
                }
            }
            return(result);
        }
Beispiel #2
0
        internal SavedRevision GetRevisionWithId(RevisionID revId, bool withBody)
        {
            if (revId == null)
            {
                return(null);
            }

            if (revId.Equals(currentRevision.Id))
            {
                return(currentRevision);
            }

            return(GetRevisionFromRev(Database.GetDocument(Id, revId, withBody)));
        }