No announcement yet.

Unable to creeate UNIX Patches on Windows

  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to creeate UNIX Patches on Windows

    I have tried on several occasions to find a way to use BC2 or BC3 to create a unix compatible patch and have not been successful.

    I am doing my PHP development on windows and have used BC2 for years to do comparison/merge and recently have had the need to create/distribute patches where UNIX patch format is the standard.

    All three options in the unix patch style fail to process via the unix patch command. The context option is the closest.

    -bash-3.2$ patch -p1 < ../798220bc3.patch
    missing header for context diff at line 5 of patch
    (Stripping trailing CRs from patch.)
    can't find file to patch at input line 5
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |Left base folder: C:\Users\myname\Desktop\myproject-rc5
    |Right base folder: F:\web4\myproject
    |*** lib-theme.php 2010-07-18 21:48:58.000000000 -0400
    |--- lib-theme.php 2010-08-08 10:17:00.000000000 -0400
    File to patch:

    I don't want it to prompt me for the file to patch and don't when I create the patches on my unix server. Also, I need to create these patches for multiple files under multiple directories.

  • #2

    Are you generating the patch files with the latest release of BC3.1.11?

    Our fully featured trial is available here:
    Beyond Compare is a multi-platform utility that combines directory compare and file compare functions in one package. Use it to manage source code, keep directories in sync, compare program output, etc.

    We've tested with a port of patch from gnuwin32. You should probably use the "Unified" option instead of Context. Which OS and version are you running?
    Aaron P Scooter Software