• GUIDE: How to SVN like a man! (no TortoiseSVN)
    22 replies, posted
[h2]Simple SVN Without TortoiseSVN[/h2] [B]I used to use TortoiseSVN[/B] but I got sick of its little hickups and tedious usage. My main beef was with [B]having to rightclick -> update on every single folder[/B] to get it to update. I also remember being on a Spacebuild server and some new guy was being taught how to SVN to get the goods. He said "I don't want to use TortoiseSVN because it's a shell extension, is there another way" and there was a chorus of [B]"lol, no dickfaggot! tortoisesvn or gtfo"[/B]. No one knew any alternatives or other ways to do it and it made me want to slap some bitches. Having some experience with Linux, I had a taste for a light-weight command-line only SVN client, and there is one for windows called [B]SilkSVN[/B]. Being command-line based, SilkSVN commands can be stuck into a simple batch script to recurs through a directoy and update all the SVN folders within it, saving users time and effort. Another advantage is that SilkSVN will work with an already SVN-ed folder so if you backup the addon to another computer, SilkSVN will still work with it. No need to re-download the entire addon again! [B]Here is a guide[/B] that will help you use SilkSVN and get it to the point of near automation. [release] [h2]SilkSVN[/h2] [URL]http://www.sliksvn.com/en/download[/URL] [B]Checking out an addon[/B] 1. Open up a CMD window in the garrysmod\addons folder (in Win7, Shift-Rightclick in the folder and go Open Command Prompt Here) For Win XP, go Start -> Run, type in CMD then hit enter, then do: [code]cd "X:\path\to\garrysmod\addons"[/code] 2. Enter in: [code]svn co "<repositoryURL>" "<targetFolder>" e.g. svn co "http://sbep.googlecode.com/svn/trunk/SBEP_Models/" SBEP_Models[/code] [I]Note:[/I] if the SVN repository needs a username and password, just chuck "--username <username> --password <password>" on the end. [code]svn co "http://svn.daggeringcats.com/stargate/" stargate --username anonsvn --password anonsvn[/code] And just let it do its thing, that's it! [B]Updating all addons[/B] 1. Open Notepad 2. Copy and paste in the following: [code] @echo off title Davo's Garrysmod SVN Updater echo Davo's Garrysmod SVN Updater echo ******************************* for /F "tokens=*" %%A in ('dir /B /AD') do echo Updating '%%A'... && svn up "%%A" echo ******************************* echo Update Complete pause[/code] 3. Go File -> Save as. Set File Type to All Files and save the script in the garrysmod\addons folder as "Update.bat" Now whenever you want to update [B][I]all your addons[/I][/B], just double click Update.bat, grab some chocolate milk and come back, up to date! If you get lost with SilkSVN, open a command prompt and go "svn help" or "svn help <command>", it's pretty verbose and helpful. [/release] And now, when you see your friends using TortoiseSVN you can say: [B]"TortoiseSVN, what an overloaded tosh-bucket. Watch me as I rub one out onto your mamah's buxom cleavage."[/B] [IMG]http://www.21stcenturyfood.com/blog/wp-content/uploads/2011/11/movember-moustache.jpg[/IMG]
Cool. Think I'll get me some of that. Although, with tortoise you could just select all, then rightclick and hit update. It will update all SVN'd folders with their respected checkouts.
SilkSVN - Because 2 clicks is just too damn many.
> requires some knowledge of CMD - NOPE
[QUOTE=OutOfPop;34169739]Cool. Think I'll get me some of that. Although, with tortoise you could just select all, then rightclick and hit update. It will update all SVN'd folders with their respected checkouts.[/QUOTE] Last time I tried that in Tortoise, it opened up an update window for all of the folders and made them all update at the same time. Crippled my poor internet and gave me errors for trying to update non-svn folders. [QUOTE=areolop;34170356]> requires some knowledge of CMD - NOPE[/QUOTE] Soft
[QUOTE=towerofpower256;34171469]Last time I tried that in Tortoise, it opened up an update window for all of the folders and made them all update at the same time. Crippled my poor internet and gave me errors for trying to update non-svn folders.[/QUOTE] Odd. Mine did update them all at the same time, but my net and computer had no problem dealing with that. However, I received no errors, it simply ignored the other folders.
[QUOTE=OutOfPop;34171509]Odd. Mine did update them all at the same time, but my net and computer had no problem dealing with that. However, I received no errors, it simply ignored the other folders.[/QUOTE] Hmmm... What version was yours? I can't say I've tried that latest-and-greatest.
That would be because you selected every addon in your addon folder? Even the ones that arent connected to a svn address
This is actually extremely useful because seriously, fuck TortiseSVN.
[QUOTE=SGTNAPALM;34179512]This is actually extremely useful because seriously, fuck TortiseSVN.[/QUOTE] [img]http://cdn.overclock.net/5/5b/5bde266d_ScruffySecond.jpeg[/img] [highlight](User was banned for this post ("Image macro" - Orkel))[/highlight]
[QUOTE=towerofpower256;34169567]having to rightclick -> update on every single folder[/QUOTE] rightclick > update the folder in your addons folder, not the subfolders in it :downs:
[QUOTE=towerofpower256;34169567][h2]Simple SVN Without TortoiseSVN[/h2] [B]I used to use TortoiseSVN[/B] but I got sick of its little hickups and tedious usage. My main beef was with [B]having to rightclick -> update on every single folder[/B] to get it to update. I also remember being on a Spacebuild server and some new guy was being taught how to SVN to get the goods. He said "I don't want to use TortoiseSVN because it's a shell extension, is there another way" and there was a chorus of [B]"lol, no dickfaggot! tortoisesvn or gtfo"[/B]. No one knew any alternatives or other ways to do it and it made me want to slap some bitches. Having some experience with Linux, I had a taste for a light-weight command-line only SVN client, and there is one for windows called [B]SilkSVN[/B]. Being command-line based, SilkSVN commands can be stuck into a simple batch script to recurs through a directoy and update all the SVN folders within it, saving users time and effort. Another advantage is that SilkSVN will work with an already SVN-ed folder so if you backup the addon to another computer, SilkSVN will still work with it. No need to re-download the entire addon again! [B]Here is a guide[/B] that will help you use SilkSVN and get it to the point of near automation. [release] [h2]SilkSVN[/h2] [URL]http://www.sliksvn.com/en/download[/URL] [B]Checking out an addon[/B] 1. Open up a CMD window in the garrysmod\addons folder (in Win7, Shift-Rightclick in the folder and go Open Command Prompt Here) For Win XP, go Start -> Run, type in CMD then hit enter, then do: [code]cd "X:\path\to\garrysmod\addons"[/code] 2. Enter in: [code]svn co "<repositoryURL>" "<targetFolder>" e.g. svn co "http://sbep.googlecode.com/svn/trunk/SBEP_Models/" SBEP_Models[/code] [I]Note:[/I] if the SVN repository needs a username and password, just chuck "--username <username> --password <password>" on the end. [code]svn co "http://svn.daggeringcats.com/stargate/" stargate --username anonsvn --password anonsvn[/code] And just let it do its thing, that's it! [B]Updating all addons[/B] 1. Open Notepad 2. Copy and paste in the following: [code] @echo off title Davo's Garrysmod SVN Updater echo Davo's Garrysmod SVN Updater echo ******************************* for /F "tokens=*" %%A in ('dir /B /AD') do echo Updating '%%A'... && svn up "%%A" echo ******************************* echo Update Complete pause[/code] 3. Go File -> Save as. Set File Type to All Files and save the script in the garrysmod\addons folder as "Update.bat" Now whenever you want to update [B][I]all your addons[/I][/B], just double click Update.bat, grab some chocolate milk and come back, up to date! If you get lost with SilkSVN, open a command prompt and go "svn help" or "svn help <command>", it's pretty verbose and helpful. [/release] And now, when you see your friends using TortoiseSVN you can say: [B]"TortoiseSVN, what an overloaded tosh-bucket. Watch me as I rub one out onto your mamah's buxom cleavage."[/B] [IMG]http://www.21stcenturyfood.com/blog/wp-content/uploads/2011/11/movember-moustache.jpg[/IMG][/QUOTE] I made a small executable using the SilkSVN execs a while ago, think it is still online @ [url]http://www.bybservers.co.uk/bybsvn.rar[/url] only works for Wire/Phx/Sickness as it was built for a server running those 3 SVN mods a while ago. SilkSVN is the way I update SVN on all our servers, tis nice and simple :) And if you look for my thread history the sourcecode is posted somewhere, however simplistic and shit it was ;). So that abides by the binary sourcecode rule.
Pretty useful post.
Thanks man
I use SVN notifier myself, shows when things need to be updated
Tortoise was giving my AV false positives every day because of the shell extension, plus a HJT team thought that might have been causing problems with my PC.
Rated tool as this is indeed quite useful, thanks OP.
Isn't it called SlikSVN?
OK... Maybe this sounds a little bit stupid but I haven't used Windows in a while. Can't you just install the original SVN on Windows? Or maybe just compile it?
[QUOTE=DevilesDog;34631325]Tortoise was giving my AV false positives every day because of the shell extension, plus a HJT team thought that might have been causing problems with my PC.[/QUOTE] get rid of norton, get avast or microsoft security essentials along with malware bytes
[URL="http://www.garrysmodaddons.tk/"]This program[/URL] is easier, and comes with most SVNs already in it. Nice work though OP, not enough people know how to download addon SVNs conveniently and it's good that you've tried to help. I donated $5 to this program's creator a while back and he replied telling me that was the first-ever donation [img]http://dl.dropbox.com/u/22990731/SA%20Emotes/emot-Dawkins102.gif[/img] Show him some love, guys.
[QUOTE]Isn't it called SlikSVN? [/QUOTE] God damnit... Fuck me sideways and call me a badger... Sometimes I think my brain is trying to be retarded. [QUOTE]OK... Maybe this sounds a little bit stupid but I haven't used Windows in a while. Can't you just install the original SVN on Windows? Or maybe just compile it? [/QUOTE] I suppose you could, yes, but this is a nice & neat package that works out of the box. If you really wanted to you could compile to original SVN for Windows or you could use SlikSVN, your call. You say you haven't been using Windows, what have you been using? If it's Linux, how well does GarrysMod work in Linux?
Sorry, you need to Log In to post a reply to this thread.