现在将SVN冲突爆红后如何通过颜色和快捷键准确无误地合并代码(一) 和 版本管理-SVN爆红详细解决方案及可能带来的隐患思考(二) 两部分关于冲突爆红后,合并后的文件,与版本库文件,qaz
想要提交的文件分别列举到这里。
其中三块代码的并列视图见下,橘红色区域表示冲突后,合并代码选择的SVN和qaz
的代码,
附录代码
合并后的代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Depositer.Controller.Model
{
/// <summary>
/// This is the root interface
/// It describe the basic operation to
/// the business.
/// </summary>
[KeyPropertyAttribute("ObjectID")]
public interface IMRoot:IClonable
{
#region
/// <summary>
/// 时长
/// </summary>
double DateLength { get; set; }
/// <summary>
/// 按月的时间长度
/// </summary>
double MonthLength { get; }
/// <summary>
/// 时长
/// </summary>
double DateLength { get; set; }
/// <summary>
/// 时间类型
/// </summary>
TimeType TimeType { get; set; }
/// <summary>
/// 年利率(可能为贷款也可能为投资年利率)
/// </summary>
double YearRatio { get; set; }
double YearPercent { get; set; }
/// <summary>
/// 写入到xml中的年利率(与YearRate有一定的转化关系)
/// </summary>
double XMLYearRate { get; set; }
#endregion
/// <summary>
/// 日期集合
/// </summary>
ICollection DateCollection { get; set; }
/// <summary>
/// 月的集合
/// </summary>
ICollection MonthCollection { get; set; }
/// <summary>
/// 对象的ID
/// </summary>
int ObjectID { get; set; }
}
}
SVN版本库代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Depositer.Controller.Model
{
/// <summary>
/// This is the Root Interface
/// It describe the basic operation to
/// the business.
/// </summary>
[KeyPropertyAttribute("ObjectID")]
public interface IMRoot
{
#region
/// <summary>
/// 时长
/// </summary>
double DateLength { get; set; }
/// <summary>
/// 按月的时间长度
/// </summary>
double MonthLength { get; }
/// <summary>
/// 时间类型
/// </summary>
TimeType TimeType { get; set; }
/// <summary>
/// 年利率(可能为贷款也可能为投资年利率)
/// </summary>
double YearRatio { get; set; }
double YearPercent { get; set; }
/// <summary>
/// 写入到xml中的年利率(与YearRate有一定的转化关系)
/// </summary>
double XMLYearRate { get; set; }
#endregion
/// <summary>
/// 日期集合
/// </summary>
ICollection DateCollection { get; set; }
/// <summary>
/// 月的集合
/// </summary>
ICollection MonthCollection { get; set; }
/// <summary>
/// 对象的ID
/// </summary>
int ObjectID { get; set; }
}
}
qaz
本地工作副本:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Depositer.Controller.Model
{
/// <summary>
/// This is the root interface
/// </summary>
public interface IMRoot:IClonable
{
/// <summary>
/// 按月的时间长度
/// </summary>
double MonthLength { get; }
/// <summary>
/// 时长
/// </summary>
double DateLength { get; set; }
/// <summary>
/// 时间类型
/// </summary>
TimeType TimeType { get; set; }
/// <summary>
/// 年利率(可能为贷款也可能为投资年利率)
/// </summary>
double YearRatio { get; set; }
double YearPercent { get; set; }
/// <summary>
/// 写入到xml中的年利率(与YearRate有一定的转化关系)
/// </summary>
double XMLYearRate { get; set; }
}
}