Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Subversion space consumption... how do you cope with that?

Subversion space consumption... how do you cope with that?

Scheduled Pinned Locked Moved The Lounge
questioncomhelplearning
15 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Joan M

    Hello all, I would like to know how do you cope with the space consumption of the subversion repositories. Of course meanwhile you are developing a project it is important to keep a history of what is going on, but once it has been finished, it should be archived and all the versions should be removed except the last one. At least this is what would be interesting on my company. the only problem is that I've not been able to find any step to do that automatically. Do you do this in that way? if you do it, how? and if you don't, what do you do and why? As always, thank you in advance. :rose:

    [www.tamelectromecanica.com][www.tam.cat]

    G Offline
    G Offline
    Gideon Engelberth
    wrote on last edited by
    #4

    Well, if you have one project per repository, you could just delete the whole repository after making whatever backups your company deems appropriate. If you have multiple projects in a single repository, the project will still be there even if you delete the folder from the head revision. It is by design, and there's no reasonable way around that. In terms of space usage, the repository should be fairly small. A quick check of my project directories shows that the repository is less than 150% of the project directory size after 1100 revisions over 20 or so projects. As for how I do it, when a project is ready to release (a project is never finished), I simply make a tag in the repository to note which revision was used for the release. Creating a tag takes almost zero hard drive space, which is explained in the Subversion manual. I also make a folder and import the associated binaries for that release. This along with building any installers that are required for the project (which I do not import to the repository) and storing the files on the server (where all the releases from before I started using svn are stored) are all done from a script that I have developed based on my particular process. I do not know what you mean by removing "all the versions except the last one", but I definitely keep all the old revisions around. This can come in handy if you want to search through to find how you fixed a particular issue. It also is useful when trying to find out when something was changed that may not be obvious from the version release notes.

    1 Reply Last reply
    0
    • J Joan M

      Hello all, I would like to know how do you cope with the space consumption of the subversion repositories. Of course meanwhile you are developing a project it is important to keep a history of what is going on, but once it has been finished, it should be archived and all the versions should be removed except the last one. At least this is what would be interesting on my company. the only problem is that I've not been able to find any step to do that automatically. Do you do this in that way? if you do it, how? and if you don't, what do you do and why? As always, thank you in advance. :rose:

      [www.tamelectromecanica.com][www.tam.cat]

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #5

      As for why you want to keep your history around in some form, when you resume work on an app and are looking at a line of code going WTF!; the revision history will at least let you know what the guilty party thought it was supposed to do. If you just want to start each version of your dev with revision 1 you should be able to just import into a new repository, but this will make tracking history to older code more painful.

      The latest nation. Procrastination.

      1 Reply Last reply
      0
      • J Joan M

        Hello all, I would like to know how do you cope with the space consumption of the subversion repositories. Of course meanwhile you are developing a project it is important to keep a history of what is going on, but once it has been finished, it should be archived and all the versions should be removed except the last one. At least this is what would be interesting on my company. the only problem is that I've not been able to find any step to do that automatically. Do you do this in that way? if you do it, how? and if you don't, what do you do and why? As always, thank you in advance. :rose:

        [www.tamelectromecanica.com][www.tam.cat]

        J Offline
        J Offline
        John M Drescher
        wrote on last edited by
        #6

        I do not archive anything from the repository so I do have 8 year old stuff in there. I am still using cvs though so the 2 million lines of code could fit on a single cd if needed. I believe the last time I tested moving that to svn it was less than 4GB which is pretty insignificant considering whatever server I have it on has > 2TB of raid..

        John

        1 Reply Last reply
        0
        • J Joan M

          Hello all, I would like to know how do you cope with the space consumption of the subversion repositories. Of course meanwhile you are developing a project it is important to keep a history of what is going on, but once it has been finished, it should be archived and all the versions should be removed except the last one. At least this is what would be interesting on my company. the only problem is that I've not been able to find any step to do that automatically. Do you do this in that way? if you do it, how? and if you don't, what do you do and why? As always, thank you in advance. :rose:

          [www.tamelectromecanica.com][www.tam.cat]

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #7

          Not saying it's the best way, but: I 7zip old stuff, makes it small but slightly harder to get to - hard to get to is infinitely better than "actually gone". So far I've only had to open the 7zip-ed archives twice.

          1 Reply Last reply
          0
          • J Joan M

            Hello all, I would like to know how do you cope with the space consumption of the subversion repositories. Of course meanwhile you are developing a project it is important to keep a history of what is going on, but once it has been finished, it should be archived and all the versions should be removed except the last one. At least this is what would be interesting on my company. the only problem is that I've not been able to find any step to do that automatically. Do you do this in that way? if you do it, how? and if you don't, what do you do and why? As always, thank you in advance. :rose:

            [www.tamelectromecanica.com][www.tam.cat]

            D Offline
            D Offline
            David Wong
            wrote on last edited by
            #8

            For starters have differing projects in separate repositories. As for history I would probably keep the lot disk space is cheap < 10p per GB. Or archive it if necessary.

            J 1 Reply Last reply
            0
            • D David Wong

              For starters have differing projects in separate repositories. As for history I would probably keep the lot disk space is cheap < 10p per GB. Or archive it if necessary.

              J Offline
              J Offline
              John M Drescher
              wrote on last edited by
              #9

              David Wong wrote:

              For starters have differing projects in separate repositories.

              That will save an enormous amount of space with subversion.

              John

              D D 2 Replies Last reply
              0
              • J John M Drescher

                David Wong wrote:

                For starters have differing projects in separate repositories.

                That will save an enormous amount of space with subversion.

                John

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #10

                Why? Shouldn't only diffs be taking up disk space?

                The latest nation. Procrastination.

                J 1 Reply Last reply
                0
                • D Dan Neely

                  Why? Shouldn't only diffs be taking up disk space?

                  The latest nation. Procrastination.

                  J Offline
                  J Offline
                  John M Drescher
                  wrote on last edited by
                  #11

                  I am not sure of the exact reason but I have seen the huge difference in size while testing importing cvs repositories to svn.

                  John

                  1 Reply Last reply
                  0
                  • J John M Drescher

                    David Wong wrote:

                    For starters have differing projects in separate repositories.

                    That will save an enormous amount of space with subversion.

                    John

                    D Offline
                    D Offline
                    David Wong
                    wrote on last edited by
                    #12

                    John M. Drescher wrote:

                    That will save an enormous amount of space with subversion.

                    I did not mean that having separate repositories would save space. I was more coming from the angle that it is easier to then archive unused repositories and delete them as opposed to what I have seen in some companies that have 1 repository and all their projects dumped into this, and wondering why the repository is so large.

                    1 Reply Last reply
                    0
                    • J Joan M

                      Hello all, I would like to know how do you cope with the space consumption of the subversion repositories. Of course meanwhile you are developing a project it is important to keep a history of what is going on, but once it has been finished, it should be archived and all the versions should be removed except the last one. At least this is what would be interesting on my company. the only problem is that I've not been able to find any step to do that automatically. Do you do this in that way? if you do it, how? and if you don't, what do you do and why? As always, thank you in advance. :rose:

                      [www.tamelectromecanica.com][www.tam.cat]

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #13

                      I go with the "disk space is cheap" and "losing information is expensive" camps.

                      R 1 Reply Last reply
                      0
                      • P PIEBALDconsult

                        I go with the "disk space is cheap" and "losing information is expensive" camps.

                        R Offline
                        R Offline
                        Roger Wright
                        wrote on last edited by
                        #14

                        I admire the way that you distill thousands of words into a couple of cogent, concise bullet points. Well done. :)

                        "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                        P 1 Reply Last reply
                        0
                        • R Roger Wright

                          I admire the way that you distill thousands of words into a couple of cogent, concise bullet points. Well done. :)

                          "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                          P Offline
                          P Offline
                          PIEBALDconsult
                          wrote on last edited by
                          #15

                          Thanks. I once had someone say that one word from me is worth ten from someone else. I think it helps my coding.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups