Perforce integration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    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?
  • Chris
    Team Scooter
    • Oct 2007
    • 5526

    #2
    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

    Comment

    • DEinspanjer
      Enthusiast
      • Nov 2007
      • 28

      #3
      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>

      Comment

      • Guest's Avatar

        #4
        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>

        Comment

        • Chris
          Team Scooter
          • Oct 2007
          • 5526

          #5
          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

          Comment

          Working...