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 QOTD

Subversion QOTD

Scheduled Pinned Locked Moved The Lounge
questionannouncement
12 Posts 7 Posters 2 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 was wondering how do you solve this situation: When you have some files that are common to various projects, let's think on libraries or other kinds of files that must be shared, do you copy them in each project and when you want to update the library for all the projects you go project by project changing the local copy or do you have other methods implemented? I've thought on doing that change automatically, but I don't have any idea if this is possible or not, and moreover I'd like to be able to make some branches and to make the different projects to depend on the right branch... Any idea? As always thank you in advance...

    L Offline
    L Offline
    leppie
    wrote on last edited by
    #3

    For dll's I normally just create a 'Dependencies' folder in the SVN's project root. Not sure how well this will work for branching though.

    xacc.ide - now with IronScheme support
    IronScheme - 1.0 alpha 2 out now

    1 Reply Last reply
    0
    • J Joan M

      Hello all, I was wondering how do you solve this situation: When you have some files that are common to various projects, let's think on libraries or other kinds of files that must be shared, do you copy them in each project and when you want to update the library for all the projects you go project by project changing the local copy or do you have other methods implemented? I've thought on doing that change automatically, but I don't have any idea if this is possible or not, and moreover I'd like to be able to make some branches and to make the different projects to depend on the right branch... Any idea? As always thank you in advance...

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

      You want to look at externals in Subversion does exactly what you want, linking to differing repositories/branches and revision etc. You can set this up very easily using Tortoise if you want. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-howto-common-projects.html[^]

      C C J H 4 Replies Last reply
      0
      • J Joan M

        Hello all, I was wondering how do you solve this situation: When you have some files that are common to various projects, let's think on libraries or other kinds of files that must be shared, do you copy them in each project and when you want to update the library for all the projects you go project by project changing the local copy or do you have other methods implemented? I've thought on doing that change automatically, but I don't have any idea if this is possible or not, and moreover I'd like to be able to make some branches and to make the different projects to depend on the right branch... Any idea? As always thank you in advance...

        P Offline
        P Offline
        Professor Sharada Ulhas
        wrote on last edited by
        #5

        Like leppie, I create a folder in the root called 3rd Party Libraries. All projects that depend on the library reference it from here.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: Upon this disciple I'll build my new religion? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        1 Reply Last reply
        0
        • D David Wong

          You want to look at externals in Subversion does exactly what you want, linking to differing repositories/branches and revision etc. You can set this up very easily using Tortoise if you want. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-howto-common-projects.html[^]

          C Offline
          C Offline
          conixsdh
          wrote on last edited by
          #6

          We use externals as well. Our Trunk always points to the Trunks for the third-party libraries - but when we branch - we branch the third-party libraries as well so that our deliveries will not pull in 'untested' libraries..

          D 1 Reply Last reply
          0
          • D David Wong

            You want to look at externals in Subversion does exactly what you want, linking to differing repositories/branches and revision etc. You can set this up very easily using Tortoise if you want. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-howto-common-projects.html[^]

            C Offline
            C Offline
            Chris Austin
            wrote on last edited by
            #7

            That's a very smart way of doing it. I'm going to have to update my setup and deploy scripts to take advantage of it.

            A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. - -Lazarus Long

            1 Reply Last reply
            0
            • D David Wong

              You want to look at externals in Subversion does exactly what you want, linking to differing repositories/branches and revision etc. You can set this up very easily using Tortoise if you want. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-howto-common-projects.html[^]

              J Offline
              J Offline
              Joan M
              wrote on last edited by
              #8

              After reading a little bit about it, I think it is exactly what I wanted to do... Thank you for sharing, I'll try it as soon as possible.

              1 Reply Last reply
              0
              • C conixsdh

                We use externals as well. Our Trunk always points to the Trunks for the third-party libraries - but when we branch - we branch the third-party libraries as well so that our deliveries will not pull in 'untested' libraries..

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

                You can also specify the revision to use for the external code/libraries so it will always bring back the compatible code. Eg Trunk ->External Shared Libs(Rev 12345) etc

                1 Reply Last reply
                0
                • D David Wong

                  You want to look at externals in Subversion does exactly what you want, linking to differing repositories/branches and revision etc. You can set this up very easily using Tortoise if you want. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-howto-common-projects.html[^]

                  H Offline
                  H Offline
                  humbertgim
                  wrote on last edited by
                  #10

                  Hi all, I'm trying to use svn:externals, without success. My problem is when I type the property like: Folder structure: trunk Robot Common On common folder, I'm adding the property svn:externals Common svn://servidor01/$ Common Tortoise Svn gives me a parsing error. Why? Thank you in advance.

                  D 1 Reply Last reply
                  0
                  • H humbertgim

                    Hi all, I'm trying to use svn:externals, without success. My problem is when I type the property like: Folder structure: trunk Robot Common On common folder, I'm adding the property svn:externals Common svn://servidor01/$ Common Tortoise Svn gives me a parsing error. Why? Thank you in advance.

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

                    What is the url you would normally use for accessing the common folder? This should be exactly the same url you use for the tortoise external. I am not sure why you have a $ symbol and then the common folder name?

                    H 1 Reply Last reply
                    0
                    • D David Wong

                      What is the url you would normally use for accessing the common folder? This should be exactly the same url you use for the tortoise external. I am not sure why you have a $ symbol and then the common folder name?

                      H Offline
                      H Offline
                      humbertgim
                      wrote on last edited by
                      #12

                      The repository is at svn://servidor01/$ Common ($ means nothing, can it cause any problem?) I would like to have this common project at this working copy of another project: c:\$ Projectes\projecte 153\ Can someone please tell me how can I use svn:externals? Thank you in advance

                      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