Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 112011
 

Merge changes from trunk into branch in SVN

Answer:

Assume you have created a branch in SVN, which is at revision 125. Now the trunk's head revision is increased to 150, and you want to merge the changes happened in trunk and port to branch also.

In your branch's working folder, execute:

# svn merge -r 125:HEAD_REVISION http://example.com/svn/repos/demo/trunk .

That's it.

Aug 192010
 

Downgrade the format of a Subversion working copy

Answer:

Sometimes, when you upgraded the local subversion working copy, but others use an older client to access it, error likes "This client is too old to work with working copy..." will appear.

To fix this, you can consider downgrade the format of the subversion working copy.

E.g. Downgrade to 1.4

# change-svn-wc-format.py /path/to/working/copy 1.4

The useful python script can be downloaded here: http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py

Aug 012010
 

http://svnbook.red-bean.com/en/1.0/ch04s02.html

Answer:

In SVN, if you want to create a branch, you can use the following command.

# svn copy http://example.com/svn/repos/demo/trunk \
           http://example.com/svn/repos/demo/branches/my-test-branch \
      -m "My test branch for the 'demo' project."

Committed revision 125.