版本管理-SVN爆红详细解决方案及可能带来的隐患思考附录(三)

现在将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; }

    }
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值