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

C# VersionControl.Revision类代码示例

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

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



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

示例1: RevertRevisions

		private static bool RevertRevisions (Repository vc, string path, Revision revision, bool test, bool toRevision)
		{
			try {
				if (test) {
					return (vc.CanRevert (path));
				}
				
				string question = GettextCatalog.GetString (
				  "Are you sure you want to revert the selected resources to the revision specified (all local changes will be discarded)?");
				
				if (!toRevision)
					question = GettextCatalog.GetString (
					  "Are you sure you want to revert the changes from the revision selected on these resources?");
				
				if (MessageService.AskQuestion (question, 
				                                GettextCatalog.GetString ("Note: The reversion will occur in your working copy, so you will still need to perform a commit to complete it."),
				                                AlertButton.Cancel, AlertButton.Revert) != AlertButton.Revert)
					return false;

				new RevertWorker(vc, path, revision, toRevision).Start();
				return true;
			}
			catch (Exception ex) {
				if (test)
					LoggingService.LogError (ex.ToString ());
				else
					MessageService.ShowException (ex, GettextCatalog.GetString ("Version control command failed."));
				return false;
			}
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:30,代码来源:RevertRevisionsCommands.cs


示例2: VersionInfo

		public VersionInfo (FilePath localPath, string repositoryPath, bool isDirectory, VersionStatus status, Revision revision, VersionStatus remoteStatus, Revision remoteRevision)
		{
			this.localPath = localPath;
			this.repositoryPath = repositoryPath;
			this.isDirectory = isDirectory;
			this.status = status;
			this.revision = revision;
			this.remoteStatus = remoteStatus;
			this.remoteRevision = remoteRevision;
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:10,代码来源:VersionInfo.cs


示例3: RevertToRevision

		public static bool RevertToRevision (Repository vc, string path, Revision revision, bool test)
		{
			return RevertRevisions (vc, path, revision, test, true);
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:4,代码来源:RevertRevisionsCommands.cs


示例4: GetTextAtRevision

		public override string GetTextAtRevision(FilePath repositoryPath, Revision revision)
		{
			throw new NotImplementedException();
		}
开发者ID:yvanjanssens,项目名称:monodevelop-git,代码行数:4,代码来源:GitRepository.cs


示例5: Checkout

		public override void Checkout(FilePath targetLocalPath, Revision rev, bool recurse, IProgressMonitor monitor)
		{
			throw new NotImplementedException();
		}
开发者ID:yvanjanssens,项目名称:monodevelop-git,代码行数:4,代码来源:GitRepository.cs


示例6: Checkout

		public override void Checkout (FilePath path, Revision rev, bool recurse, IProgressMonitor monitor)
		{
		}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:3,代码来源:UnknownRepository.cs


示例7: GetTextAtRevision

		public override string GetTextAtRevision (FilePath repositoryPath, Revision revision)
		{
			return null;
		}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:4,代码来源:UnknownRepository.cs


示例8: Annotation

		public Annotation (Revision revision, string author, DateTime date)
		{
			this.Revision = revision;
			this.Author = author;
			this.Date = date;
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:6,代码来源:Repository.cs


示例9: GetAnnotations

		/// <summary>
		/// Retrieves annotations for a given path in the repository.
		/// </summary>
		/// <param name="repositoryPath">
		/// A <see cref="FilePath"/>
		/// </param>
		/// <param name="since">
		/// A <see cref="Revision"/>
		/// </param>
		/// <returns>
		/// A <see cref="Annotation"/> corresponding to each line 
		/// of the file to which repositoryPath points.
		/// </returns>
		public virtual Annotation [] GetAnnotations (FilePath repositoryPath, Revision since)
		{
			return new Annotation[0];
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:17,代码来源:Repository.cs


示例10: GetRevisionChanges

		/// <summary>
		/// Returns the list of changes done in the given revision
		/// </summary>
		/// <param name='revision'>
		/// A revision
		/// </param>
		public RevisionPath[] GetRevisionChanges (Revision revision)
		{
			return OnGetRevisionChanges (revision);
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:10,代码来源:Repository.cs


示例11: GetTextAtRevision

		public abstract string GetTextAtRevision (FilePath repositoryPath, Revision revision);
开发者ID:nieve,项目名称:monodevelop,代码行数:1,代码来源:Repository.cs


示例12: RevertToRevision

		public abstract void RevertToRevision (FilePath localPath, Revision revision, IProgressMonitor monitor);
开发者ID:nieve,项目名称:monodevelop,代码行数:1,代码来源:Repository.cs


示例13: Checkout

		public abstract void Checkout (FilePath targetLocalPath, Revision rev, bool recurse, IProgressMonitor monitor);
开发者ID:nieve,项目名称:monodevelop,代码行数:1,代码来源:Repository.cs


示例14: GetHistory

		// Returns the revision history of a file
		public abstract Revision[] GetHistory (FilePath localFile, Revision since);
开发者ID:nieve,项目名称:monodevelop,代码行数:2,代码来源:Repository.cs


示例15: RevertWorker

			public RevertWorker(Repository vc, string path, Revision revision, bool toRevision) {
				this.vc = vc;
				this.path = path;
				this.revision = revision;
				this.toRevision = toRevision;
			}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:6,代码来源:RevertRevisionsCommands.cs


示例16: GetTextAtRevision

		public string GetTextAtRevision (FilePath repositoryPath, Revision revision)
		{
			return OnGetTextAtRevision (repositoryPath, revision);
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:4,代码来源:Repository.cs


示例17: OnGetTextAtRevision

		protected abstract string OnGetTextAtRevision (FilePath repositoryPath, Revision revision);
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:1,代码来源:Repository.cs


示例18: GetHistory

		// Returns the revision history of a file
		public Revision[] GetHistory (FilePath localFile, Revision since)
		{
			return OnGetHistory (localFile, since);
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:5,代码来源:Repository.cs


示例19: OnGetRevisionChanges

		/// <summary>
		/// Returns the list of changes done in the given revision
		/// </summary>
		/// <param name='revision'>
		/// A revision
		/// </param>
		protected abstract RevisionPath[] OnGetRevisionChanges (Revision revision);
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:7,代码来源:Repository.cs


示例20: OnGetHistory

		protected abstract Revision[] OnGetHistory (FilePath localFile, Revision since);
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:1,代码来源:Repository.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# VersionControl.VersionInfo类代码示例发布时间:2022-05-26
下一篇:
C# VersionControl.Repository类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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