by kenlyle » Wed Jan 10, 2007 5:47 pm
I just meant that I can't run the native diff command on the two sets of file, as they are, in place, on the server, because I can't get to a command prompt.
FTP is easy, I use SmartFTP, mostly.
I've produced a patch file with WinMerge, but can't find a way to apply it.
The format doesn't appear to be typical diff/compare output, for example:
*** admin/includes/boxes/catalog.php Mon Mar 27 12:49:35 2006
--- admin/includes/boxes/catalog.php Sun Jan 07 17:59:45 2007
***************
*** 21,33 ****
'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'));
if ($selected_box == 'catalog') {
! $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .
! '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .
! '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .
! '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .
! '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .
! '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');
! }
$box = new box;
echo $box->menuBox($heading, $contents);
--- 21,58 ----
'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'));
if ($selected_box == 'catalog') {
!
! $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '"
!
! class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .
!
! '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '"
!
! class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .
!
! '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '"
!
! class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .
!
! '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '"
!
! class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .
!
! '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '"
!
! class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .
!
! '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '"
!
! class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>'.
!
! '<a href="' .
!
! tep_href_link(FILENAME_RECURRING_SCHEME, '', 'NONSSL') . '" class="menuBoxContentLink">' .
!
! BOX_CATALOG_RECURRING_SCHEME . '</a>');
!
! }
$box = new box;
echo $box->menuBox($heading, $contents);
==============================================
I have only investigated some 2 of the formats in which WinMerge will produce the diff, and haven't found one that includes BOTH the filenames AND the diff commands, like r21,58-c21,33 or whatever. The first didn't include the filenames, so would have had to have tested every patch against every file when applied, which would be ridiculous, and this one is close, but doesn't seem quite right.
I am going to keep working on this, but as a background task.
K