【问题标题】:"Patch seems outdated" message received although the patch was created now尽管现在已创建补丁,但仍收到“补丁似乎已过时”消息
【发布时间】:2011-05-03 09:49:16
【问题描述】:

我从主干创建了以下补丁:

Index: Index.aspx
===================================================================
--- Index.aspx  (revision 1421)
+++ Index.aspx  (working copy)
@@ -164,14 +164,13 @@
             var fetchXml = "<fetch mapping='logical'>\
                                <entity name='task'>\
                                    <attribute name='subject' width='250'/>\
+                                   <attribute name='statecode' width='100'/>\
+                                   <attribute name='wbs_statusreasonforcctask' width='100'/>\
                                    <attribute name='scheduledend' width='100'/>\
                                    <attribute name='actualend' width='100'/>\
                                    <attribute name='description' width='200'/>\
                                    <attribute name='ownerid' width='100'/>\
-                                   <attribute name='statecode' width='100'/>\
                                    <attribute name='createdon' width='100'/>\
-                                   <attribute name='wbs_statusreasonforcctask' width='100'/>\
-                                   <order attribute='statecode' descending='true'/>\
                                     <order attribute='actualend' descending='true'/>\
                                    <filter type='and'>\
                                        <condition attribute='regardingobjectid' operator='in'>\

我正在尝试将它应用到一个分支的同一个文件上。
文件的同一段如下所示:

    var fetchXml = "<fetch mapping='logical'>\
                            <entity name='task'>\
                                <attribute name='subject' width='250'/>\
                                <attribute name='scheduledend' width='100'/>\
                                <attribute name='actualend' width='100'/>\
                                <attribute name='description' width='200'/>\
                                <attribute name='ownerid' width='100'/>\
                                <attribute name='statecode' width='100'/>\
                                <attribute name='createdon' width='100'/>\
                                <attribute name='wbs_statusreasonforcctask' width='100'/>\
                                <order attribute='statecode' descending='true'/>\
                            <order attribute='actualend' descending='true'/>\
                                <filter type='and'>\
                                            <condition attribute='regardingobjectid' operator='in'>\

当我应用补丁时,我收到以下错误消息:
补丁好像过时了!文件行和补丁行 var fetchXml = "\ 不匹配。
但是它们在同一行。

【问题讨论】:

    标签: svn tortoisesvn


    【解决方案1】:

    这可能是问题所在。由于您尝试将其应用于分支,因此我建议您进行分支合并。这样 SVN 应该能够管理所有的中间更改。

    【讨论】:

      【解决方案2】:

      问题是乌龟合并工具无法识别正确的文件名。
      我将补丁放在工作副本的根目录下,通常乌龟合并工具可以自动检测到要补丁的正确文件。然而,由于这个文件被称为 index.aspx 并且我有多个文件,所以它可能会混淆,因此会出现错误。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-02-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多