Get change from one specific commit or from another working directory
Author: LG Calix Last revision: 2024/12/04, LG Calix
Pull the change from one commit
Let’s say you have a local folder folder1, with revision 2345. If for some reason you want to import just the fix brought by revision 3456 - without all the intermediary change - you can do “cherry-picking” with the option -c of svn merge :
cd [folder1] svn merge -c 3456 .
Copy the change done on one local folder to other local folders
Second case scenario : you have local folders 1 and 2 with different ORCHIDEE revisions, and did some change to folder1 that you want to spread to folder2 (for example a new model output). Instead of doing it manually, you can use the following commands (eventually it will create .rej and .orig files to resolve conflicts manually) :
cd [folder1] svn diff > mychange.patch cp mychange.patch ../../../[folder2] patch -p0 < my_changes.patch
Last modified 3 weeks ago
Last modified on 2024-12-04T13:36:07+01:00