wiki:HowToSVN

Version 12 (modified by hamish, 16 years ago) ( diff )

typo

Getting development information and code history from SVN

  • "ChangeLog" style file: install and run svn2cl
  • File history in SVN:
    cd path/to/directory/
    svn log [file.c]

    # or time reverted:
    svn log [file.c] | tac

Switch the repository

To switch from SVN 'trunk' (now GRASS 7 development) to 'develbranch_6' (now GRASS 6.4 development) use

    cd /path/to/your/local/copy/trunk
    svn switch https://svn.osgeo.org/grass/grass/branches/develbranch_6 .

The switch command preserves local, uncommited changes.

SVN usage

Merge between branches (backporting)

Run the command from within the target branch.

  • Example 1: pull a change from trunk into the 6.3 release branch:
        cd releasebranch_6_3/
        svn merge -c 30749 https://svn.osgeo.org/grass/grass/trunk
    

where 30749 is the revision number of the changeset you wish to backport.

  • Example 2: merge a change from the 6.4 development branch into GRASS 7 (trunk):
        cd trunk/
        svn merge -c 31154 https://svn.osgeo.org/grass/grass/branches/develbranch_6
    
    

See Also

Note: See TracWiki for help on using the wiki.