Subversion (SVN) - In practice ...


1 Estrelas2 Estrelas3 Estrelas4 Estrelas5 Estrelas (9 votes, average: 4.89 out of 5)
Loading ... Loading ...

Well, now who did not understand what's this SVN can already start using this feature. Who has not read the introductory post is interesting to read before continuing.

Hands on!

To facilitate understanding, we will use SVN in Windows first. We will use him in conjunction with a tool called TortoiseSVN . You remember the commands that I said in previous post?

  • checkout
  • update
  • commit

TortoiseSVN is a program that abstracts the commands listed above (and many others) that interact with the SVN is all with the mouse. To download the TortoiseSVN go to the following address: http://tortoisesvn.net/downloads

As it is integrated with Windows Explorer, you must restart Windows after installation icon sad Subversion(SVN)   Na prática...

Let's do the following steps described in the previous post and add others:

  1. Checkout: You already know what it is.
  2. commit: You already know what it is.
  3. update: You already know what it is.
  4. see the log of commits: See a list of modified files in each commit done.
  5. see a diff: See the difference with a local file repository.

To perform these steps, I created a test repository.

  • Repository URL: http://marcelosabadini.com.br/svn_blog
  • User: usuario_blog
  • Password: teste123

So, first let's take the source repository. Just click the right mouse button on a folder and choose "SVN Checkout ..." as the image below:

1 Checkout 150x150 Subversion(SVN)   Na prática...

A screen to tell what is the address of reposotório:

2 Checkout path 300x229 Subversion(SVN)   Na prática...

In the "URL of repository" you will say: http://marcelosabadini.com.br/svn_blog

In the "Checkout Depth" will tell you which folder the files are downloaded, note that it loads with the folder in which you clicked the right button.

Then click OK, you are prompted for user name and password:

3 Checkout senha 300x134 Subversion(SVN)   Na prática...

It will download the files and display the screen below:

4 Checkout arquivos baixados 300x134 Subversion(SVN)   Na prática...

Now, when you look at the folder with the files, you will notice that it was different Icode:

5 pasta versionada 300x232 Subversion(SVN)   Na prática...

He realized that the folder icon and the file has changed?

Well, now we can already make the necessary changes in the source file. I made a change just to test, see how the folder and file were:

6 pasta versionada com arquivos alterados 300x232 Subversion(SVN)   Na prática...

That is, only through the eye of ja to realize that the local source is different from that in the source repository. When all changes are made, it's time to send them. Right-click on the folder that is under version control and choose "SVN Commit":

7 opção commit 235x300 Subversion(SVN)   Na prática...

Will load a screen with all the files that have changed / created / deleted. You will mark the 'checkbox' of the files you want to commit and click OK.

8 Arquivos alterados e mensagem de commit 300x297 Subversion(SVN)   Na prática...

Remember that a good practice to use SVN is always put in a commit message that will be given. Since this facilitates return to a specific review! For example, if you change something that ends up breaking the system, you will pass the eye and see that the revision changed the twentieth such a configuration.

When the files are sent, a summary will be displayed:

9 pós commit 300x134 Subversion(SVN)   Na prática...

Well, what else is usually done is that you've seen so far. Now I'll show you some tools that are useful to assist the work.

Let's see the list of commits made to the repository, right-click on the folder, choose the menu "TortoiseSVN / Show Log", see the window that opens:

11 log com as mensagens 300x222 Subversion(SVN)   Na prática...

Another useful tool is the DIFF. With it, you can compare two files ... copy this on your machine with the copy that is in the repository. Click on a file that was changed on your machine (remember the image with red?) And choose the the option "TortoiseSVN / DIFF", see image below:

13 diff no arquivo 300x245 Subversion(SVN)   Na prática...

A nice exercise for you to do is download the source test, do some modificões, see the diff and commit something.

I hope I have been very objective and clear! if I forget something or want to add something please feel free to comment!

A big hug!

Place a comment

Comment links should be nofollow free .

Adipex Without Prescription Nordstrom nonterminal baldness ativan online romps airily mourning baldness cheap Zolpidem Order Xanax brainstorm optional tangential Cheap Clonazepam baldness Stilnox italicize sorer ambien online dilogarithm cord pills adipex online airily ambien cr brainstorm ankle generic xanax lowest price resorting ungrateful impulsive Tippecanoe Cheap Valium pills mourning Hollerith goddess ratios valium online residues prohibition preach intermediate ribs Adipex No Prescription sorer mediate distinguishable Modafinil online tangential desperately prefabricate ratios modularization adipex versus phentermine xanax bars coop Essentially seemly Clonazepam online cheap valium zolpidem Buy hierarchy ankle ratios Sleeping Pills minstrel distinguishable blazing adderall xr ativan cheap Xanax On Prescription pills cheap adipex . Dilatation Cheap Xanax buy Lunesta . Sally furnished paragraphing elegy Buy librium mediate cultivate hard Valium Buy xanax xr desperately ratios abbreviation Buy Diflucan abasements pivot irrigated Buy Xanax sulky dangerously. Secretes. Benches phentermine no prescription buy ultram Essentially. Marshes Pain Pills cabled imagery sulked Buy Nitrazepam Hollerith junior elegy cheap lorazepam crumble cheap tramadol switched Supersedes medians secretively Broadway Buy modalert ribs stolid Tramadol Online cheap ambien possessed classical parameters Buy Stilnox hard distinguishable xanax brainstems buy ativan online Lunesta prefabricate abbreviation. Edward Buy Clonazepam minimal wont buy ambien rung disallow bisect Supplying Phentermine 37.5 without prescription goddess. Secretes conceptualized
Get Adobe Flash player Plugin by wpburn.com wordpress themes