Esempio n. 1
0
        private static FileChangeInfo CreateFileChange(Changeset changesetItem, Change changeItem)
        {
            var newInfo = new FileChangeInfo();

            newInfo.ChangesetId = changesetItem.ChangesetId;
            newInfo.ChangeType = changeItem.ChangeType;
            newInfo.Member = changesetItem.Committer;
            newInfo.ItemPath = changeItem.Item.ServerItem;

            return newInfo;
        }
        private ChangeType RemoveIrrelevantFlags(FileChangeInfo changeInfoItem)
        {
            var cleanedChangeType =
                                   (changeInfoItem.ChangeType & ~ChangeType.Merge) &
                                   (changeInfoItem.ChangeType & ~ChangeType.Branch) &
                                   (changeInfoItem.ChangeType & ~ChangeType.Encoding) &
                                   (changeInfoItem.ChangeType & ~ChangeType.Rollback);

            return cleanedChangeType;
        }