How to SVN merge directories recursively

The correct way to recursively merge two branches using Subversion:

svn merge target_dir@revision source_dir@revision working_dir

Notice:

  • working_dir is most likely the target_dir
  • target_dir comes before source_dir
Use this example when you’re in the working directory you’re trying to merge into:

svn merge .@head source_dir@head .

After merging, you’ll want to check that the merge succeeded:

diff -u –recursive source_dir target_dir
This entry was posted in Linux, Subversion. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>