Version 5 (modified by mmcgrath, 4 years ago) (diff)


How to compare two versions of ORCHIDEE

Author: M. McGrath and J. Ghattas

Last revision: 2020/02/28, M. McGrath

If you would like to integrate the differences between one version of ORCHIDEE (such as the trunk, or a branch, or someone's personal copy) and your local copy, please see this page. If you simply want to see the differences, the text below shows you two different ways to do it.

There 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.

The 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 (, you can see all the versions you have access to. If you can't see a version, you don't have access. Be sure to find the location of the ORCHIDEE directory in the branch/personal folder that you are looking at.

Note that you cannot see differences between versions that have not been committed to svn. So, if someone makes modifications to the trunk but never does "svn commit", you cannot see those differences with these methods.

Graphical method

  • You can easily compare
    • a local version(with changes that were not commited) with the same version on the SVN repository (the same branch). Use commands svn stat, svn -u stat, svn diff, etc. See also 10 minutes SVN and ORCHIDEE
    • 2 versions of ORCHIDEE on the SVN using the web interface. For example to compare branch DOFOCO with the trunk. Access the web-interface by using the bottom Browse source up to the right on this page. See also the end of document above.

Metode en ligne

Matt wrote:

If you prefer the command line, you can use "svn diff". You will need to find the svn address of the version of ORCHIDEE that you are trying to compare against (this page has something short about that.

   svn diff svn:// svn://

to compare the trunk against the branch CN-CAN. Or

   svn diff svn:// MYDIRECTORY/modeles/ORCHIDEE

to see differences between the trunk and a version of ORCHIDEE that you have extracted locally into MYDIRECTORY.