Jump to content


Apply patch to P4 dept

patch diff

  • Please log in to reply
1 reply to this topic

#1 sneftel

sneftel

    Member

  • Members
  • PipPip
  • 10 posts

Posted 22 January 2014 - 02:34 PM

How can I apply a patch which was generated by "p4 diff" or "p4 diff2"? Is there any way to
automatically open the relevant files into a CL and apply the diffs?

#2 P4Matt

P4Matt

    Advanced Member

  • Members
  • PipPipPip
  • 1383 posts

Posted 22 January 2014 - 05:11 PM

Perforce doesn't have a command to apply a patch, but you can use the standard Unix patch utility to apply it. p4 diff2 can generate a Unix compatible patch with the '-u' flag.

Actually if you're an Eclipse user there is a tool we supply to apply patches, but there's nothing like it on the command line.





Also tagged with one or more of these keywords: patch, diff

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users