Friday, 16 April 2010

setup google code repositry and link with tortoise




  • I suppose you have a Google account otherwise go ahead and make you one
  • Than you go to your dashboard and search for the Code link indicated on the picture above and click it. The page will give you all kinds of other links and useful information of the Google code project in general but , a pitty tough , the actual link to create a new project is not present. My first time I created a project I had to google around to find the correct link and here he comes:
http://code.google.com/hosting/
  • You just select create new project and give in your id tags below you can see an example:


    • Google checks your project name and if it already exists you must take another one. I had to take another one because "tortoise" was not free. So I changed it to "tortoisecourse". If your project is made you get follow screen ( only upper left corner ):
    • Basically this is it for making the repository ready to work with any SVN client. If you click on source you will see that everything is ready trunk , branches , tags and even a wiki page you can use:






    • First you need to find the URL that is needed to link your repository with your tortoise client. You need the URL and also your username and password. You can find the url by clicking on "checkout". Next information will be showed:


    •  Next you need to find your Google code password. You can do that by going into your profile and take the setting option. You will need that to able to connect to your repo. I'm not showing this on a little picture because my password is public that way. But it's kind a straight forward way and easy to find. Once you have that information you can go back to your files you want to be managed by SVN.
    • We will setup tortoise first with the link info. Suppose you want to check in a folder called "course" with a singe readme text file in it. Well just click right on that folder and goto the tortoise item and click on import:



    • Now you need to give your url and a comment:


      • After you click OK you will be prompted to give in your username and password. Just go ahead and give them in. Best thing is selecting the keep authentication so you will never be prompted to give in those things ;-)



        • After you login is successful tortoise will import your file(s) into the Google code repository and finally you must see following window that says that your readme file is imported:



        • Now you have initially imported your file(s). The last step you need to do is doing the actual check out from the repo. This is needed to synchronize your repo with the local file structure. You just click right in windows explorer and taken the SVN checkout item. Tortoise will automatically prompt you using the correct URL. You can still change your working directory where you want the files to be dropped.
        • From now on all your changes you make locally will be tracked by subversion. In my next blog I will go a little bit deeper in all of the functionalities of tortoise. Just one more thing it's best that you restart your system to able to view the little tortoise icons in file view.


        installing turtoise svn client

        • Goto the turtoise website hosted by tigris:
        http://tortoisesvn.tigris.org/
        • Check for the latest version section and click the link provided for the download page, you can choose between the 32/64 bit version. It's also indicated against which version of subversion (mine was 1.6.9) tortoise is build.
        • The download will automatically start from the source force repositories.
        • If all went well you normally have the msi installer file in your download folder
        • Run the msi installer normally it's signed too so no worry you must get something like below: 


        • Normally all feature are enabled by default so carry on with the installation it only takes 56M bytes of your disk space
        • When the installation is finished it will ask for to reboot your machine go ahead and let's do that
        • Basically that's it for the installation to check tortoise is properly installed you can right click a folder in your explorer there you must find svn checkout:


        • It's quit simple and fast. Next blog I will explain how you can link your google code repo with your local tortoise client.

        Friday, 26 March 2010

        try out for the new draft blog templates

        This morning I got a mail from the blogger team that announced a more sophisticated interface to let you make some blogger templates. Curious as I 'm I immediately wanted to try it out. I chose an easy subject and off I was. The subject is subversion and I will show the very basics of what it can do for you. I will go into the process of installing configuring and using it as a client file version management system. I like "file version" more than "source code version" because subversion goes beyond that edge of being just a programming tool that covers only pure written application code. Of course there're many systems out there like eg:
        • CVS
        • GIT
        • VSS
        • Mercury
        • Subversion ( also known as SVN )
        As I use SVN the most, I'll stick to that one here. Once you start using a file version management system you always do, that's my experience with this kind of tool. You get many advantages too let me show you a few related to SVN:
        • Always have a backup of your files
        • It's easy to see the differences between file versions
        • You can revert changes at any point of history
        • You can make branches and merge them
        • You can make release tags
        • Apache track integration 
        The most popular SVN client is of course TortoiseSVN. Its now free for download and installs itself seamlessly into windows explorer. The SVN client software is automatically installed when you install TortoiseSVN. This program gives you all the necessary tools you need to work with SVN at the client site and most of the time that's all you need. To able to work with this client you need some SVN server and repository. You can install SVN server locally on your computer but it's also possible to install and integrate it into an Apache web server. In my next blogs I'll go into details of all the pieces you need to work with subversion. Moreover subversion is supported here in google code project acting as the server site repository. If you use google It becomes easy to have all your files centralized in your google account for free. So I will focus on the installation and use with google code project in this blog. Apache integration is out of scoop.

        Next I will go into the installation of subversion.