Russia
|
Because of many questions about using a repository, I will publish a short Tips & Tricks about the TortiseSVN practice.
1. How to download and install the TortoiseSVN
a) Go to http://tortoisesvn.net/downloads.html
b) click one of blue download button:
c) Save the file anywhere you want.
d) Execute the downloaded file and follow the program instructions.
e) After finishing the installation your SVN client is ready to work.
2. How to create a local copy of repository (download all the project)
a) Choose a project repository URL that you want to copy from this page:
http://code.google.com/p/discuzx-en/
For example, if you want to use the International Discuz!X2.0,
so your repository URL will be http://discuzx-en.googlecode.com/svn/trunk/discuzx2.0ML/
b) Create a new folder where you want to place your local copy. I.e. c:/myprojects/discuzx2svn.
c) Make a right click on just created folder in your windows file explorer
d) Choose from the context menu "SVN Update".
e) Fill in a folder name where to save the project SVN copy (the folder, that you have created before).
f) Click submit, and wait until copying is finished.
g) That's all. Your local copy is created!
h) ATTENTION!
In your local repository and all the subfolders you can see ".svn" folders.
This .svn folders are required only for control the project versions/patches.
DO NOT REMOVE THIS FOLDERS AND FILES !!!!
3. How to update your local repository to the latest version
a) Make a right click on your local repository folder in your windows file explorer
b) Choose from the context menu "SVN Update".
c) Wait until copying is finished, then click OK.
d) That's all. Your local copy is updated to the latest version!
4. How to create a CLEAN repository copy without .svn files
In your local repository and all the subfolders you can see ".svn" folders.
This .svn folders are required only for control the project versions/patches.
But this folders are not required for your SITE.
DO NOT UPLOAD it to your site!
If you want to have a "cleaned" project without the .svn files - just "export" your local repository to a new folder!
a) create a separate folder
b) Right click on your local copy of a repository -> TortiseSVN -> Export
c) Select the target folder where the project will be copied to (w/o .svn).
d) Wait for copying is finished.
e) That's all. You have a ready to upload/archiving folder with all the project files but w/o .svn folders.
x. How to create a patch
a) Open a parent folder of your working copy folder in explorer.
b) Right mouse click over the ROOT of your working copy folder. IT IS IMPORTANT!
I.e. over the E:/home/Blog/htdocs/DZX20-EN as shown in the screenshot below.
c) Select from context menu:
TortoiseSVN -> Create patch...
d) In the window "Create patch" check the checboxes that you want to include into this patch.
(you can choose not all the modifications, but only ones interesting for the problem that you want to solve by this patch)
e) If you want to see what was modified in some file,
right click at this file and choose "Show differences as unified diff"
f) If some files must be ignored in this patch (i.e. if you plan to use it not right now but in a future),
uncheck this files for exclude from this patch.
g) Click OK for submit
h) Choose a folder and a file name for save the patch.
i) Archivate the resulting patch file and attach it to your forum posting.
j) All done. Now any user can apply your patch to his repository copy.
|
This post contains more resources
You have to Login for download or view attachment(s). No Account? Register
x
|