• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Mercurial.FileInRevision类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Chorus.VcsDrivers.Mercurial.FileInRevision的典型用法代码示例。如果您正苦于以下问题:C# FileInRevision类的具体用法?C# FileInRevision怎么用?C# FileInRevision使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FileInRevision类属于Chorus.VcsDrivers.Mercurial命名空间,在下文中一共展示了FileInRevision类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: XmlChangedRecordReport

 public XmlChangedRecordReport(FileInRevision parentFileInRevision, FileInRevision childFileInRevision, XmlNode parent, XmlNode child,string url)
     : base(parentFileInRevision, childFileInRevision)
 {
     _parent = parent;
     _child = child;
     _url = url;
 }
开发者ID:regnrand,项目名称:chorus,代码行数:7,代码来源:XmlChangedRecordReport.cs


示例2: ErrorDeterminingChangeReport

 //  private readonly XmlNode _deletedNode;
 public ErrorDeterminingChangeReport(FileInRevision parent, FileInRevision child, XmlNode parentNode, XmlNode childNode, Exception error)
     : base(parent, child)
 {
     _parentNode = parentNode;
     _childNode = childNode;
     _error = error;
 }
开发者ID:JessieGriffin,项目名称:chorus,代码行数:8,代码来源:ErrorDeterminingChangeReport.cs


示例3: Find2WayDifferences

		public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
		{
			var diffReports = new List<IChangeReport>(1);

			// The only relevant change to report is the version number.
			var childData = child.GetFileContents(repository);
			var splitData = SplitData(childData);
			var childModelNumber = Int32.Parse(splitData[1]);
			if (parent == null)
			{
				diffReports.Add(new FieldWorksModelVersionAdditionChangeReport(child, childModelNumber));
			}
			else
			{
				var parentData = parent.GetFileContents(repository);
				splitData = SplitData(parentData);
				var parentModelNumber = Int32.Parse(splitData[1]);
				if (parentModelNumber != childModelNumber)
					diffReports.Add(new FieldWorksModelVersionUpdatedReport(parent, child, parentModelNumber, childModelNumber));
				else
					throw new InvalidOperationException("The version number has downgraded");
			}

			return diffReports;
		}
开发者ID:gmartin7,项目名称:flexbridge,代码行数:25,代码来源:ModelVersionFileTypeHandlerStrategy.cs


示例4: Find2WayDifferences

		public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
		{
			return Xml2WayDiffService.ReportDifferences(
				repository,
				parent,
				child,
				SharedConstants.Header,
				SharedConstants.WfiWordform, SharedConstants.GuidStr);
		}
开发者ID:gmartin7,项目名称:flexbridge,代码行数:9,代码来源:WordformInventoryFileTypeHandlerStrategy.cs


示例5: Find2WayDifferences

		public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
		{
			return Xml2WayDiffService.ReportDifferences(
				repository,
				parent,
				child,
				null,
				SharedConstants.MoMorphData, SharedConstants.GuidStr);
		}
开发者ID:gmartin7,项目名称:flexbridge,代码行数:9,代码来源:MorphAndSynFileTypeHandlerStrategy.cs


示例6: DescribeInitialContents

        public IEnumerable<IChangeReport> DescribeInitialContents(FileInRevision fileInRevision, TempFile file)
        {
            var dom = new XmlDocument();
            dom.Load(file.Path);

            foreach (XmlNode e in dom.SafeSelectNodes("notes/annotation"))
            {
                yield return new XmlAdditionChangeReport(fileInRevision, e);
            }
        }
开发者ID:sillsdev,项目名称:chack,代码行数:10,代码来源:ChorusNotesFileHandler.cs


示例7: Xml2WayDiffer

        private Xml2WayDiffer(HgRepository repository, IMergeEventListener eventListener, FileInRevision parent, FileInRevision child,
			string firstElementMarker,
			string startTag, string identfierAttribute)
        {
            _diffingMode = DiffingMode.FromFileInRevisions;
            _repository = repository;
            _parentFileInRevision = parent;
            _childFileInRevision = child;
            if (!string.IsNullOrEmpty(firstElementMarker))
                _firstElementTag = firstElementMarker.Trim();
            _startTag = "<" + startTag.Trim();
            _identfierAttribute = identfierAttribute;
            _eventListener = eventListener;
        }
开发者ID:regnrand,项目名称:chorus,代码行数:14,代码来源:Xml2WayDiffer.cs


示例8: GetDataFromRevision

		internal static Dictionary<string, byte[]> GetDataFromRevision(FileInRevision revision, HgRepository repository)
		{
			var doc = XDocument.Parse(revision.GetFileContents(repository));
			var data = doc.Root.Elements("layout")
				.ToDictionary(layoutElement =>
							  layoutElement.Attribute("class").Value + layoutElement.Attribute("type").Value + layoutElement.Attribute("name").Value,
							  layoutElement => SharedConstants.Utf8.GetBytes(layoutElement.ToString()));

			var layoutTypeElement = doc.Root.Element("layoutType");
			if (layoutTypeElement != null)
				data.Add("layoutType", SharedConstants.Utf8.GetBytes(doc.Root.Element("layoutType").ToString()));

			return data;
		}
开发者ID:gmartin7,项目名称:flexbridge,代码行数:14,代码来源:CustomLayoutDataCollectorMethod.cs


示例9: ReportDifferences

        /// <summary>
        /// Report the differences between two versions of files in the repository.
        /// </summary>
        /// <returns>Zero or more change reports.</returns>
        public static IEnumerable<IChangeReport> ReportDifferences(HgRepository repository,
			FileInRevision parent, FileInRevision child,
			string firstElementMarker,
            string recordMarker, string identfierAttribute)
        {
            var changeAndConflictAccumulator = new ChangeAndConflictAccumulator();
            // Pulls the files out of the repository so we can read them.
            var differ = Xml2WayDiffer.CreateFromFileInRevision(
                parent,
                child,
                changeAndConflictAccumulator,
                repository,
                firstElementMarker,
                recordMarker,
                identfierAttribute);

            differ.ReportDifferencesToListener();

            return changeAndConflictAccumulator.Changes;
        }
开发者ID:sillsdev,项目名称:chack,代码行数:24,代码来源:Xml2WayDiffService.cs


示例10: Find2WayDifferences

 public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
 {
     return new IChangeReport[] { new DefaultChangeReport(parent, child, "Edited") };
 }
开发者ID:regnrand,项目名称:chorus,代码行数:4,代码来源:LdmlFileHandler.cs


示例11: Find2WayDifferences

 public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
 {
     return Xml2WayDiffService.ReportDifferences(repository, parent, child,
         null,
         SharedConstants.CustomField, Key);
 }
开发者ID:StephenMcConnel,项目名称:flexbridge,代码行数:6,代码来源:CustomPropertiesTypeHandlerStrategy.cs


示例12: Find2WayDifferences

 public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
 {
     throw new ApplicationException(string.Format("Chorus could not find a handler to diff files like '{0}'", child.FullPath));
 }
开发者ID:regnrand,项目名称:chorus,代码行数:4,代码来源:ImageFileTypeHandler.cs


示例13: Lift2WayDiffer

 private Lift2WayDiffer(IMergeStrategy mergeStrategy, string parentXml, string childXml , IMergeEventListener listener, FileInRevision parentFileInRevision, FileInRevision childFileInRevision)
     : this(mergeStrategy,parentXml, childXml, listener)
 {
     _parentFileInRevision = parentFileInRevision;
     _childFileInRevision = childFileInRevision;
 }
开发者ID:JessieGriffin,项目名称:chorus,代码行数:6,代码来源:LiftDiffer.cs


示例14: XmlAttributeChangedReport

 public XmlAttributeChangedReport(FileInRevision parentFileInRevision, FileInRevision childFileInRevision, XmlAttribute editedAttribute, string url)
     : base(parentFileInRevision, childFileInRevision, editedAttribute, url)
 {
 }
开发者ID:JessieGriffin,项目名称:chorus,代码行数:4,代码来源:XmlAttributeChange.cs


示例15: XmlAttributeBothMadeSameChangeReport

 public XmlAttributeBothMadeSameChangeReport(FileInRevision fileInRevision, XmlAttribute editedChilAttribute, string url)
     : base(null, fileInRevision, editedChilAttribute, url)
 {
 }
开发者ID:JessieGriffin,项目名称:chorus,代码行数:4,代码来源:XmlAttributeChange.cs


示例16: XmlAttributeBothAddedReport

 public XmlAttributeBothAddedReport(FileInRevision fileInRevision, XmlAttribute addedChildAttribute, string url)
     : base(null, fileInRevision, addedChildAttribute, url)
 {
 }
开发者ID:JessieGriffin,项目名称:chorus,代码行数:4,代码来源:XmlAttributeChange.cs


示例17: TextEditChangeReport

 public TextEditChangeReport(FileInRevision parent, FileInRevision child, string before, string after)
     : base(parent, child)
 {
     _before = before;
     _after = after;
 }
开发者ID:regnrand,项目名称:chorus,代码行数:6,代码来源:TextEditChangeReport.cs


示例18: Find2WayDifferences

 public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
 {
     return Xml2WayDiffService.ReportDifferences(repository, parent, child, "header", "entry", "guid");
 }
开发者ID:regnrand,项目名称:chorus,代码行数:4,代码来源:LiftFileHandler.cs


示例19: Find2WayDifferences

		public IEnumerable<IChangeReport> Find2WayDifferences(FileInRevision parent, FileInRevision child, HgRepository repository)
		{
			return Xml2WayDiffService.ReportDifferences(
				parent, CustomLayoutDataCollectorMethod.GetDataFromRevision(parent, repository),
				child, CustomLayoutDataCollectorMethod.GetDataFromRevision(child, repository));
		}
开发者ID:gmartin7,项目名称:flexbridge,代码行数:6,代码来源:FieldWorksConfigurationLayoutTypeHandlerStrategy.cs


示例20: CreateFromFileInRevision

 public static Lift2WayDiffer CreateFromFileInRevision(IMergeStrategy mergeStrategy, FileInRevision parent, FileInRevision child, IMergeEventListener eventListener, HgRepository repository)
 {
     return new Lift2WayDiffer(mergeStrategy, parent.GetFileContents(repository), child.GetFileContents(repository), eventListener, parent, child);
 }
开发者ID:JessieGriffin,项目名称:chorus,代码行数:4,代码来源:LiftDiffer.cs



注:本文中的Chorus.VcsDrivers.Mercurial.FileInRevision类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# merge.MergeOrder类代码示例发布时间:2022-05-24
下一篇:
C# ChipmunkSharp.cpVect类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap