Results 1 to 5 of 5
  1. #1
    Guest

    Default Perforce integration

    My request for perforce integration is quite simple. Just to show the difference in beyond compare
    when I run the command p4 diff <file_name>.
    Seems that beyond compare doesn't support this. Any one has solution?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,584

    Default Re: Perforce integration

    Instructions for using BC as an external diff tool are listed at:
    http://www.scootersoftware.com/support.php?c=kb_vcs.php

    The instructions we have for Perforce are for the GUI. I'm not sure if Perforce allows you to specify an external tool for command line use.
    Chris K Scooter Software

  3. #3
    Join Date
    Nov 2007
    Posts
    28

    Default Re: Perforce integration

    To get it to work for diffing two files in the command line, you will want to use the set command. Something like:

    p4 set -s P4DIFF=C:/Progra~1/BC/BC2.exe

    If you have beta or if you are reading this after BC3 comes out, You'll need to make a wrapper script to enable command line merging because P4 passes the arguments in an order different from what BC expects.
    I believe the wrapper script should basically be:
    <path>\bc3.exe %2 %3 %1 %4

    And the p4 command would be:
    p4 set P4MERGE=<path_to_wrapper.bat>

  4. #4
    Guest

    Default Re: Perforce integration

    I am using it in Linux, installed using wine.
    The start up speed is very low.
    Set P4DIFF doesn't work at all. Maybe I should have a shell script as your wrapper.
    To get it to work for diffing two files in the command line, you will want to use the set command. Something like:

    p4 set -s P4DIFF=C:/Progra~1/BC/BC2.exe

    If you have beta or if you are reading this after BC3 comes out, You'll need to make a wrapper script to enable command line merging because P4 passes the arguments in an order different from what BC expects.
    I believe the wrapper script should basically be:
    <path>\bc3.exe %2 %3 %1 %4

    And the p4 command would be:
    p4 set P4MERGE=<path_to_wrapper.bat>

  5. #5
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,584

    Default Re: Perforce integration

    We're working on a native Linux version of Beyond Compare, but we haven't done any testing of BC 2.5.2 with Wine on Linux.
    Chris K Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •