Need Stupid Person's Guide to SVN

Need Stupid Person's Guide to SVN

Post just about everything that isn't directly related to Spring here!

Moderator: Moderators

Post Reply
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Need Stupid Person's Guide to SVN

Post by oksnoop2 »

I can't figure out for the life of me how to set up an SVN. I got this account on with Google Code and then downloaded VisualSVN... But I just don't know how to actually get my files on the the internet.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need Stupid Person's Guide to SVN

Post by Forboding Angel »

get tortoisesvn (after uninstalling visual)

Then restart computer

make a folder, right click on folder, svn checkout
put in relevant svn address etc

add files to folder, right click folder, tortoise svn, commit

profit???
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: Need Stupid Person's Guide to SVN

Post by oksnoop2 »

What is my "relevant svn address"?

This is the error I get.
Image
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need Stupid Person's Guide to SVN

Post by Forboding Angel »

YOu aren't giving it the correct svn address. YOu're probably giving it the trac tool address.

For example, the evo actual svn address is svn.evolutionrts.info and the trac tool is at redmine.evolutionrts.info.

Redmine is just a fancy frontend for viewing what is actually in the repository. Read up in google's faq for where to find your svn address.
User avatar
enetheru
Posts: 627
Joined: 11 Jun 2010, 07:32

Re: Need Stupid Person's Guide to SVN

Post by enetheru »

oksnoop2 wrote:I can't figure out for the life of me how to set up an SVN. I got this account on with Google Code and then downloaded VisualSVN... But I just don't know how to actually get my files on the the internet.
Any reason you didn't choose mercurial rather than subversion?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need Stupid Person's Guide to SVN

Post by Forboding Angel »

Tortoisesvn pretty much blows the pants off of any other windows based svn software.

If he wishes to get contributors later, mercurial or whatever it's spelled is pretty obscure and not as simple as it is for others who already are using svn.
http://code.google.com/p/support/wiki/GettingStarted wrote:Working with your Source Repository┬Â

Each project has its own Subversion or Mercurial repository.

* Learn more about using Subversion.
* Learn more about using Mercurial.

Perform the following to check code in and out of your source repository:

1. For instructions on how to check out a project's repository from the command line, go to the Source tab. Any user, regardless of whether they have a Google account, can check out and browse the repository anonymously, while project owners and committers are granted full read and write permissions. You can add project owners and committers at the Administer tab.
2. If you plan on synching from an existing repository, you must click the Reset This Repository link at the bottom of the Source tab page before making any other changes to your project's repository. This includes creating any new wiki pages because resetting the repository results in the loss of wiki content. Do not start a wiki page in your project before you complete this step.

After you've been working with your project for a while, the following subtabs on the Source tab will come in handy:

* Browse subtab -- Allows you to browse the files and directories in your project as they existed at a point in time.
* Changes subtab -- Lists changes made to the repository. You can also use this subtab to start a code review of any change.
Important bit highlighted

Edit: Found your svn link... it's on the front page...
# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://conflictterra.googlecode.com/svn/trunk/ conflictterra-read-only
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Need Stupid Person's Guide to SVN

Post by Tobi »

Forboding Angel wrote:
# Non-members
Might want the read-write SVN URL for members...

EDIT: also there simply isn't yet the default {branches,tags,trunk} structure yet.

So:
  • Find the read-write SVN URL for members
  • Remove /trunk from the end if it is present. (Because trunk doesn't exist yet)
  • Right click -> SVN Checkout -> enter the read-write SVN URL for members, without /trunk on the end
  • Create 3 subfolders in the newly created folder: trunk, tags, branches
  • Right click on the 3 directories -> TortoiseSVN -> Add -> OK
  • Right click on the top level folder -> SVN Commit -> message: "structure" -> OK
  • Now the URLs with /trunk on the end should work
  • Erase the checkout from disk, you don't need one of the complete repository. (And if you make good use of branches and tags a complete checkout will become HUGE.)
  • Right click -> SVN Checkout -> enter the read-write SVN URL for members, with /trunk on the end
  • Copy/cut & paste your files in the empty SVN checkout folder
  • Right click -> TortoiseSVN -> Add -> select the files you want to import -> OK
  • Right click -> Commit -> message: "initial import" -> OK
  • Profit!
Post Reply

Return to “Off Topic Discussion”