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 answers
Related Questions in PERFORCE
- How to check file content in a python script being run in a perforce trigger?
- P4 change ownership through command line
- Suppress change-submit trigger while executing form-in trigger in Perforce Helix Core using Java APIs
- Perforce: copy folder/files to local without p4root
- p4 resolved File status
- Perforce trigger script not found
- Integrating a single file that was renamed in a source stream to the target stream
- Perforce error when starting up Helix P4V
- Why P4python describe command doesn't return diff contents
- How do you add an AltRoot for Windows using `p4 client` non-interactively?
- How do I fix the Helix Swarm config so it pings the correct hostname
- P4Vs pop up unacessible when opening visual studio
- Detecting renames in perforce
- Perforce swarm reviews allow you to diff between shelf updates. Is there a way to pull a specific revision?
- p4 - How to make one directory in depot exactly match another?
Related Questions in PATCH
- Yocto kernel patch fails with git am
- Cargo patch to redirect registry to local path without having to call cargo login
- Sharepoint 2016 timer service cannot start after applying windows OS patch KB5035855
- How can I patch a function call to a Windows DLL (e.g. kernel32 LoadLibrary)? Is this even possible?
- How do I update data in my JSON file using Postman?
- How do I apply this apache patch: rewrite-windows-testchar-h.patch
- How to distinguish two PATCH operations for the same enity
- Patching UEFI Pei module problems with addresses
- Marklogic versioning
- How to use New-AzConfigurationAssignment Powershell cmdlet for Dynamic Scope for different subscriptions -Azure update manager
- Patch executable is deleted by windows defender but the same was not deleted in earlier build patches
- How to make patch(1) use the answer with +++ instead of asking
- Create "git format-patch" output from existing "diff" file
- Laravel PATCH validation fails in controller
- Edite https://graph.microsoft.com/v1.0/admin/people/profileCardProperties
Related Questions in REVIEW-BOARD
- How to update a review that had old commits before it?
- How to use rbt (for review-board) to aquire 'All Incoming Review Requests' from command line
- How to post review with non-binary and binary file?
- Getting all review requests from Review Board Python Web API
- bitnami Review Board The Python module "subvertpy" is not installed when adding repository
- Where has the source code of postreview Mercurial extension moved to?
- Review Board - Post separate commits, ignoring pull commits
- getting html page when trying to access reviewboard diff using rest api
- Unable to install Review board on CentOS
- Upgrade reviewboard 2.x to 3.x
- Does review board support CCRC clearcase
- ReviewBoard 3.0.11 cannot set up SVN repository
- Subprocess shell not passing yes with | to the bash script I'm executing
- mercurial (hg) extension for Review Board 3
- What is the criteria to get qualified for Trophy in Review Board?
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?
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)
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.