Changes between Initial Version and Version 1 of Documentation/UserGuide/svnmerge

11/05/14 08:55:53 (8 years ago)



  • Documentation/UserGuide/svnmerge

    v1 v1  
     1There are times when you want to know what has changed between a version you are working on and a version someone else has in SVN.  For example, someone told you about a cool feature in the OCN branch and you want to see how difficult it would be to put it into your personal copy.  Such an action requires first to see how many differences there are between the version you are working on and the version of interest. 
     3svn merge is a good way to do this.  Let's say that I have my local copy of ORCHIDEE installed in modipsl/modeles/ORCHIDEE.  Josefine has told me that she has a cool feature in her personal version that I might be interested in, so I'd like to know how many files are in conflict. 
     6cd modipsl/modeles/ 
     7svn merge --dry-run svn:// ORCHIDEE 
     10the "dry-run" option means that it will tell you what files are in conflict without actually doing the merge and changing your local version of the code. 
     12The most important thing you need to know here is if you can actually access the version you are trying to merge with.  If you go onto the Wiki under the Browse Source label (, if you can see a version there when you are logged in, you should be able to access it.  Be sure to find the location of the ORCHIDEE directory in the branch/personal folder that you are looking at.  In the example above, Josefine might have several version of ORCHIDEE laying around, and therefore we needed to dive a little deeper to actually find the location of the ORCHIDEE folder.