| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 24309|Reply: 22
Collapse the left

TortoiseSVN Practice

  [Copy link]

 Russia

Post time: 2011-09-20 09:53
| Show all posts |Read mode
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

 United States

Post time: 2011-09-28 15:42
| Show all posts
Edited by Lin at 2011-9-28 15:43

I just finished reading this (and practicing it). IT IS SO COOOOOOL!!! SO much better than me trying to write down every change I made (I feel stupid) .__. Nice tutorial!!! {:2_31:} BIG THANKS!

 Palestine

Post time: 2011-11-10 13:41
| Show all posts
its work


thanx !!! alot !!
Post time: 2011-12-18 14:44
| Show all posts
Edited by vituocgia at 2011-12-18 15:46

If you are new bie, you can using SmartSVN (trial for 31 days)...It's easily for using ;)
Post time: 2012-01-29 19:19
| Show all posts
Thank you very much, I have the rev 328 Spanish, I have already translated the folder "forum" How do I go on repository?

 Russia

 Author| Post time: 2012-01-29 19:43
| Show all posts
Just make a patch.
And attach it at your post.
Post time: 2012-01-29 20:17
| Show all posts
vot respondió a las 2012-1-29 20:43
Just make a patch.
And attach it at your post.

sorry, I forgot the patch. Let me I do not review your email
Post time: 2012-02-15 10:45
| Show all posts
I can not create a patch, sorry vot


I'm doing something wrong?

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

 Author| Post time: 2012-02-15 10:58
| Show all posts
Follow step by step this tutorial section: "x. How to create a patch".
And describe what was you doing.
Post time: 2012-02-15 11:06
| Show all posts
vot respondió a las 2012-2-15 11:58
Follow step by step this tutorial section: "x. How to create a patch".
And describe what was you doi ...

ok,
1.- I have given you right click on the SVN folder in my case is "Discuz! International"
2.- Then I chose the following: TortoiseSVN -> Create Patch...

I do not understand what happens?
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 04:31 GMT+3 , Processed in 0.092058 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list