A colleague has created a perforce change list and has posted a review on review board for the change. Alas the change is not shelved, but I need to apply the change to my code. The colleague will not be available for some days so I can not ask him to shelve the files or to give me a unified diff of the files. So all I have now is the code review. From reviewboard I can download the perforce patch for the change. Please note this is not unified diff(like the output of p4 diff -du), but is some other format. Now my question is - is there a way I can apply this patch to another perforce client? Or maybe to convert the diff to unified diff so that I can use linux patch command?
Can I apply changes from a perforce patch(downloaded from review board) to my code
1.2k Views Asked by Ivaylo Strandjev At
1
There are 1 best solutions below
Related Questions in PERFORCE
- Perforce workspaces and multiple branches
- Perforce won't branch over deleted files
- How can I query Perforce for a list of users who have workspaces that reference a particular file in the depot?
- is there a way to find all the perforce workspaces which are mapping a certain file in the depot?
- Have teamcity checkout on build agent machine
- Perforce - switch to workspace from command line
- git p4 sync - where did the perforce changes go?
- Can I apply changes from a perforce patch(downloaded from review board) to my code
- Data integrity before migration
- Associate specific paths in Atlassian Fisheye with Perforce branch mappings
- Unity & P4Connect
- Perforce how to Read the branch mapping from standard input without invoking an editor
- Facing issue with jenkins: label name not recognized by sync command
- Gradle 'maven-publish' plugin fails with "unmappable character for encoding" error
- Perforce to git migration
Related Questions in PATCH
- Patch update Authenticated User in Laravel
- Magento Fatal Error in /IndexController.php on line 23
- Rails 4 patch request does not update attributes
- Can I apply changes from a perforce patch(downloaded from review board) to my code
- Forbidden when trying to patch User
- When a security update is applied as a patch, does the product name change?
- Patch on a modified file
- Postgresql: How to apply pg_dump --exclude-table-data patch?
- WSO2 Carbon Core 4.2.0 Patch 10 build failed
- How to do delta extraction from GIT for patching?
- Wix ToolSet Patch Creation Using "Patch Creation Properties"
- NetLogo 3D: Transparent Patches
- Using GNUwin patch
- Onenote API (REST) - PATCH append - "must include a 'commands'" error when Commands is already supplied (?!)
- creating an empty file from diff using svn patch
Related Questions in REVIEW-BOARD
- rbt setup-repo returns with error
- Can I apply changes from a perforce patch(downloaded from review board) to my code
- Integrate Review Board with SVN for commit approval
- How to post review for multiple clearcase files in review board
- Posting a review to ReviewBoard using git diff
- review board, post-review and a deleted file
- Error while adding remote Git repository in Review Board
- Can I use ReviewBoard with an svn repository on a different machine?
- review board didn't display repository after add
- Server SSL certificate verification failed when setting up ReviewBoard with a SVN repo
- rb-site install error: "Table 'reviewboard.auth_user' doesn't
- How to update a review that had old commits before it?
- Reviewboard/SVN post-review errors: repository path is not in the list of known repositories
- reviewboard: post-review error uploading diff with basedir configuration error
- reviewboard post-review and "A +" status files
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It's fairly straightforward to apply a patch file downloaded from reviewboard on to a copy of the source code.
The only thing that you need to change is the path to the source code.
So, for example, given a downloaded patch file which has lines like:
You only need to change each line starting with
+++.You can either change it to an absolute path to your source code or a relative path from some starting dir.
Then you combine that with judicious use of
-pand potentially-dand the patch file will apply.