Create a SVN Repository on local drive
Answer:
To create a SVN Repository on local drive, you can use the following command:
# cd /data/
# svnadmin create svn
Now you have created a SVN repository located at file:///data/svn/
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Create a SVN Repository on local drive
Answer:
To create a SVN Repository on local drive, you can use the following command:
# cd /data/
# svnadmin create svn
Now you have created a SVN repository located at file:///data/svn/
Print SVN log in chronical order
Answer:
To print the svn log in chronical order (according to the time they occured)
# svn log -r1:HEAD
Replace the -r1 with the revision you needed.
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.
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
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.