The first step for you as a user, is to download a client to connect to the repository.
TortoiseSVN is the Recommended Client, and what this tutorial will be based on http://tortoisesvn.tigris.org/

  • Download Tortoise from http://tortoisesvn.tigris.org/
  • Install Tortoise.
  • After installing, in a location of your choice Create a Folder called “Techgurulive” (or a name of your choice)
  • Right Click on the Folder and Select “SVN Checkout..”
  • Insert http://www.svn.Techgurulive.com/Techgurulive/trunk/ as the “URL of repository:” Leave all options as they are, leave it on “HEAD revision” This will grab the latest version, If you need a certain revision, you may specify that number in the other option (This is not the TechguruliveVersion Number).
    • Normal users should checkout the /trunk/ , the /trunk/ will always be the latest version of  Techgurulive
    • If for some reason, you need an older version you may, grab it using the same method, just point to the /tags/version/ you need.
    • It is recommended to, upgrade to the latest version of  Techgurulive, or conflicts may occur when running patches.
  • Download Process will being downloading the latest files from the Repository.
  • Done!

Updating

Updating to the newest version, is simple.

  • Right Click on the folder you made above.
  • Click “SVN Update”.
  • Download Process will being updating to all the latest files from the Repository.
  • Done!

Patching with patch files

This is actually a pretty simple process.

  • Download the patch file(s) you wish to use.
  • It is recommended, to patch only if your files are clean(unmodified). To clean them you may delete all the files in your folder, and Update/Checkout again, or Right click, Hover to “TortiseSV”, and choose Revert. Then Revert all files that are modified. Also, it is best usually if you use the latest most up to date files.
  • Right Click on the folder you made above.
  • Hover over “TortoiseSVN”.
  • On the new menu Click “Apply Patch..”
  • Browse to the patch file you want to use, and open it up.
  • A new window will open up.
    • The window on the far left, will contain the names, of the files that will be patched.
      • Black Name means your version of the file matches the version the patch was created for.
      • Red Name means your version of the file does not matches the version the patch was created for. If this is the case, Tortoise will download the version of the file the patch was made for, and in short compare it with yours, and will keep what is in your new file, while adding the patch correctly still where it was supposed to go.
      • Grey Name means you have already ran the patch on this file.
    • The left section of the main window (After you click on a file name or Right click “Preview patch file”) contains your file (before its modified) (see the note below regarding a patch that was made for an old version)
      • If you had a red file name, This window will contain the orginal file the patch was made for.
    • The right section of the main window (After you click on a file name or Right click “Preview patch file”) contains your file, along with what is being added (+ symbol and colored lines) or removed (- symbol and colored lines). This will be the file after the patch is applied. (see the note below regarding a patch that was made for an old version)
      • If you had a red file name, This window will contain the patched version of (your orginal) file.
    • In the case that you have a bottom section (when you had a red file name). This window will contain the final output of the 2 files being merged together, with what is being added (+ symbol and colored lines) or removed (- symbol and colored lines). This will be the Final output your file is saved as.
  • Here, you may manually insepect each file before its is patched. If you wish to patch the file your currently looking at, in the File Name Window, Right Click on it an choose “Patch selected”. If you have no Red file names, You can just go on and Right Click, and choose “Patch All”. It is recommended if you had Red file names, to manually inspect the files, for conflicts, but you may just patch all without doing this.
  • After you have patched all files (each file name will be Grey) You the window.
  • Done! Your files have been patched with the file you selected, you may repeat this for any other patches you wish to apply.

How to create patches
Again this is actually a pretty simple process.

  • Before creating a patch be sure that your files are clean(unmodified) or this may cause problems, or do unwanted things for other users.. To clean them you may delete all the files in your folder, and Update/Checkout again, or Right click, Hover to “TortiseSV”, and choose Revert. Then Revert all files that are modified.Also, it is best usually if you use the latest most up to date files.
  • Modify any files necessary for your patch, in the SVN folder.
  • Right Click on the folder you made above.
  • Hover over “TortoiseSVN”.
  • Click “Create Patch…”
  • A new windows open which will list all modified files, select the files(should be all likely) that you wish to include in your patch, and press “Ok”
  • Pick a Name for your patch file, its recommended to make things easier for everyone to use a similar filename to the the following. My_Patch_Name_v#_#
    • “My_Patch_Name” Is what you will call your patch. Please replace spaces with underscores “_”.
    • v# Is your version number for this patch EX v1, or v0.1, v2.4
    • The final # is the Current SVN Revision Number, (Right now is its just started the current Revision number is 1
    • So Your final filename would be something like, “My_Patch_Name_v2.4_1″
  • After the File is saved, Archive it, in a zip or rar file. Then upload it to the site of your choice.
  • Share it! And your done!

Source: cotonti.com/docs/en/misc/svn_guide_windows

Post By Editor (2,827 Posts)

Website: →

Connect