Я создал следующий патч из ствола:
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 = "\ не совпадают.
Однако они находятся на одной строке.