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. Source control and roaming the glens...

Source control and roaming the glens...

Scheduled Pinned Locked Moved The Lounge
questionsalesregexhelp
34 Posts 16 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.
  • R Rage

    HarveySaayman wrote:

    you lock the file

    :omg: and prevent everybody to check in their changes while you are away ?? No, leppie is right, Make your changes locally annd merge when you are back.

    H Offline
    H Offline
    Harvey Saayman
    wrote on last edited by
    #5

    keyword in the original message is PREVENT, and locking the file will do exactly that :) i never said its the best solution for the problem but it does meet the presented requirements :rolleyes:

    Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

    you.suck = (you.passion != Programming)

    R 1 Reply Last reply
    0
    • H Harvey Saayman

      keyword in the original message is PREVENT, and locking the file will do exactly that :) i never said its the best solution for the problem but it does meet the presented requirements :rolleyes:

      Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

      you.suck = (you.passion != Programming)

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #6

      HarveySaayman wrote:

      keyword in the original message is PREVENT,

      Well, I read it as : will it prevent colleagues from working, e.g. is this a _bad_ idea ? In which case your proposition does the exact opposite thing to the only requirement he was demanding ;P :)

      I H 2 Replies Last reply
      0
      • R Rage

        HarveySaayman wrote:

        keyword in the original message is PREVENT,

        Well, I read it as : will it prevent colleagues from working, e.g. is this a _bad_ idea ? In which case your proposition does the exact opposite thing to the only requirement he was demanding ;P :)

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #7

        Yes, you read it correctly. I had to double check though - I wouldn't put it past me to make dumb mistakes... Iain.

        Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

        1 Reply Last reply
        0
        • L leppie

          Use something like bzr or SVN locally, then merge changes when you get back.

          xacc.ide - now with TabsToSpaces support
          IronScheme - 1.0 alpha 4a out now (29 May 2008)

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #8

          Not heard of bzr - will have to do a little diggin'. Iain.

          Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

          1 Reply Last reply
          0
          • R Rage

            HarveySaayman wrote:

            keyword in the original message is PREVENT,

            Well, I read it as : will it prevent colleagues from working, e.g. is this a _bad_ idea ? In which case your proposition does the exact opposite thing to the only requirement he was demanding ;P :)

            H Offline
            H Offline
            Harvey Saayman
            wrote on last edited by
            #9

            oops :) my bad damn my speed reading :-O

            Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

            you.suck = (you.passion != Programming)

            1 Reply Last reply
            0
            • I Iain Clarke Warrior Programmer

              A question came up at work recently, though I've thought about before. You have a nice shiny source control system, and many happy developers at code headquarters. But you need to take your laptop and go to a customers site in the deep arctic, and internet access there is limited at best, and you can only borrow a pc to check your email. You'll be there for a few weeks, and for nothing better to do, will be writing a feature or two in the software, or may need to tweak it to match immediate customer demands. How would that work with source control? If you checked out the code, would that prevent colleagues from working on it in your absence? Your's knowing-source-control-is-a-Good-Thing-but-has-some-conceptual-hurdles, Iain.

              Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

              K Offline
              K Offline
              krmed
              wrote on last edited by
              #10

              We use ClearCase, and each developer working on new features uses a different branch for development. This won't block others from checking out the file while you're gone, even though you have it checked out (but on a different branch). When you get back, it's a simple matter to merge things back to the mainline code after it's been tested and ready for the wild.

              Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

              I G 2 Replies Last reply
              0
              • K krmed

                We use ClearCase, and each developer working on new features uses a different branch for development. This won't block others from checking out the file while you're gone, even though you have it checked out (but on a different branch). When you get back, it's a simple matter to merge things back to the mainline code after it's been tested and ready for the wild.

                Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

                I Offline
                I Offline
                Iain Clarke Warrior Programmer
                wrote on last edited by
                #11

                So, maybe I'm just being overworried, and it's a non-issue... Wouldn't be the first time. Like dipping your toe in a cold pool. Iain.

                Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                1 Reply Last reply
                0
                • K krmed

                  We use ClearCase, and each developer working on new features uses a different branch for development. This won't block others from checking out the file while you're gone, even though you have it checked out (but on a different branch). When you get back, it's a simple matter to merge things back to the mainline code after it's been tested and ready for the wild.

                  Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #12

                  krmed wrote:

                  it's a simple matter to merge things back to the mainline code

                  That statement can only be true for the most degenerate cases, where the components that the separate users are working on are completely separate and have static, well-defined interfaces to other components.

                  Software Zen: delete this;

                  K 1 Reply Last reply
                  0
                  • I Iain Clarke Warrior Programmer

                    A question came up at work recently, though I've thought about before. You have a nice shiny source control system, and many happy developers at code headquarters. But you need to take your laptop and go to a customers site in the deep arctic, and internet access there is limited at best, and you can only borrow a pc to check your email. You'll be there for a few weeks, and for nothing better to do, will be writing a feature or two in the software, or may need to tweak it to match immediate customer demands. How would that work with source control? If you checked out the code, would that prevent colleagues from working on it in your absence? Your's knowing-source-control-is-a-Good-Thing-but-has-some-conceptual-hurdles, Iain.

                    Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                    C Offline
                    C Offline
                    Colin Angus Mackay
                    wrote on last edited by
                    #13

                    Use the source controls branching feature then merge when you get back.

                    Recent blog posts: * Introduction to LINQ to XML (Part 1) - (Part 2) - (part 3) My website | Blog

                    1 Reply Last reply
                    0
                    • I Iain Clarke Warrior Programmer

                      A question came up at work recently, though I've thought about before. You have a nice shiny source control system, and many happy developers at code headquarters. But you need to take your laptop and go to a customers site in the deep arctic, and internet access there is limited at best, and you can only borrow a pc to check your email. You'll be there for a few weeks, and for nothing better to do, will be writing a feature or two in the software, or may need to tweak it to match immediate customer demands. How would that work with source control? If you checked out the code, would that prevent colleagues from working on it in your absence? Your's knowing-source-control-is-a-Good-Thing-but-has-some-conceptual-hurdles, Iain.

                      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                      G Offline
                      G Offline
                      Gary Wheeler
                      wrote on last edited by
                      #14

                      In our case, the developer took a copy of the working code with him on the laptop and made his changes locally. After he got back, he carefully merged his changes in with the rest of the code. He was lost in the outback of southern France for a while :rolleyes:.

                      Software Zen: delete this;

                      I 1 Reply Last reply
                      0
                      • I Iain Clarke Warrior Programmer

                        A question came up at work recently, though I've thought about before. You have a nice shiny source control system, and many happy developers at code headquarters. But you need to take your laptop and go to a customers site in the deep arctic, and internet access there is limited at best, and you can only borrow a pc to check your email. You'll be there for a few weeks, and for nothing better to do, will be writing a feature or two in the software, or may need to tweak it to match immediate customer demands. How would that work with source control? If you checked out the code, would that prevent colleagues from working on it in your absence? Your's knowing-source-control-is-a-Good-Thing-but-has-some-conceptual-hurdles, Iain.

                        Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

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

                        Branch.

                        Visit http://www.notreadytogiveup.com/[^] and do something special today.

                        1 Reply Last reply
                        0
                        • G Gary Wheeler

                          In our case, the developer took a copy of the working code with him on the laptop and made his changes locally. After he got back, he carefully merged his changes in with the rest of the code. He was lost in the outback of southern France for a while :rolleyes:.

                          Software Zen: delete this;

                          I Offline
                          I Offline
                          Iain Clarke Warrior Programmer
                          wrote on last edited by
                          #16

                          Gary Wheeler wrote:

                          He was lost in the outback of southern France for a while

                          I can think of worse places to be stuck. You sure he was having lots of difficulties that required him to stay on site? And weren't you suspicious when he didn't get phone reception...? Iain. Bonnie Tyler: Lost in France. I was lost in France In the fields the birds were singing I was lost in France And the day was just beginning As I stood there in the morning rain I had a feeling I can't explain I was lost in France in love I was lost in France In the street a band was playing And the crowd all danced Didn't catch what they were saying When I looked up he was standing there And I knew I shouldn't but I didn't care I was lost in France in love Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing I was lost in France And the vines were over-flowing I was lost in France And a million stars were glowing And I looked round for a telephone To say 'baby I won't be home' I was lost in France in love Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing And I looked round for a telephone To say 'baby I won't be home' I was lost in France in love Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing...

                          Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                          G 1 Reply Last reply
                          0
                          • I Iain Clarke Warrior Programmer

                            Gary Wheeler wrote:

                            He was lost in the outback of southern France for a while

                            I can think of worse places to be stuck. You sure he was having lots of difficulties that required him to stay on site? And weren't you suspicious when he didn't get phone reception...? Iain. Bonnie Tyler: Lost in France. I was lost in France In the fields the birds were singing I was lost in France And the day was just beginning As I stood there in the morning rain I had a feeling I can't explain I was lost in France in love I was lost in France In the street a band was playing And the crowd all danced Didn't catch what they were saying When I looked up he was standing there And I knew I shouldn't but I didn't care I was lost in France in love Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing I was lost in France And the vines were over-flowing I was lost in France And a million stars were glowing And I looked round for a telephone To say 'baby I won't be home' I was lost in France in love Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing And I looked round for a telephone To say 'baby I won't be home' I was lost in France in love Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing Ooh la la la Ooh la la la dance Ooh la la la dancing...

                            Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                            G Offline
                            G Offline
                            Gary Wheeler
                            wrote on last edited by
                            #17

                            He does keep mumbling something about Marseille, beaches, and pastis...

                            Software Zen: delete this;

                            1 Reply Last reply
                            0
                            • I Iain Clarke Warrior Programmer

                              A question came up at work recently, though I've thought about before. You have a nice shiny source control system, and many happy developers at code headquarters. But you need to take your laptop and go to a customers site in the deep arctic, and internet access there is limited at best, and you can only borrow a pc to check your email. You'll be there for a few weeks, and for nothing better to do, will be writing a feature or two in the software, or may need to tweak it to match immediate customer demands. How would that work with source control? If you checked out the code, would that prevent colleagues from working on it in your absence? Your's knowing-source-control-is-a-Good-Thing-but-has-some-conceptual-hurdles, Iain.

                              Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                              P Offline
                              P Offline
                              Paul Watson
                              wrote on last edited by
                              #18

                              Iain Clarke wrote:

                              If you checked out the code, would that prevent colleagues from working on it in your absence?

                              SVN doesn't lock files on checkout by default, which is a good thing. Your colleagues can do all the simultaneous edits they want. It comes down to when people commit back to the repo, SVN will then check for differences between your working copy and the repo. In your situation, as Trollslayer and others said, branch. Then merge when you get back. BTW you can also contribute patches over email to SVN repos.

                              regards, Paul Watson Ireland & South Africa

                              Fernando A. Gomez F. wrote:

                              At least he achieved immortality for a few years.

                              I 1 Reply Last reply
                              0
                              • I Iain Clarke Warrior Programmer

                                A question came up at work recently, though I've thought about before. You have a nice shiny source control system, and many happy developers at code headquarters. But you need to take your laptop and go to a customers site in the deep arctic, and internet access there is limited at best, and you can only borrow a pc to check your email. You'll be there for a few weeks, and for nothing better to do, will be writing a feature or two in the software, or may need to tweak it to match immediate customer demands. How would that work with source control? If you checked out the code, would that prevent colleagues from working on it in your absence? Your's knowing-source-control-is-a-Good-Thing-but-has-some-conceptual-hurdles, Iain.

                                Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                                N Offline
                                N Offline
                                Nirosh
                                wrote on last edited by
                                #19

                                Partial Classes

                                - A random opportunity is like a taller chair, those who sit hang on, those who hang on fall L.W.C. Nirosh. Colombo, Sri Lanka.

                                I 1 Reply Last reply
                                0
                                • N Nirosh

                                  Partial Classes

                                  - A random opportunity is like a taller chair, those who sit hang on, those who hang on fall L.W.C. Nirosh. Colombo, Sri Lanka.

                                  I Offline
                                  I Offline
                                  Iain Clarke Warrior Programmer
                                  wrote on last edited by
                                  #20

                                  OK, that means absolutely nothing to me (not in this context anyways). This thread is showing more and more of my ignorance. Iain.

                                  Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                                  R 1 Reply Last reply
                                  0
                                  • P Paul Watson

                                    Iain Clarke wrote:

                                    If you checked out the code, would that prevent colleagues from working on it in your absence?

                                    SVN doesn't lock files on checkout by default, which is a good thing. Your colleagues can do all the simultaneous edits they want. It comes down to when people commit back to the repo, SVN will then check for differences between your working copy and the repo. In your situation, as Trollslayer and others said, branch. Then merge when you get back. BTW you can also contribute patches over email to SVN repos.

                                    regards, Paul Watson Ireland & South Africa

                                    Fernando A. Gomez F. wrote:

                                    At least he achieved immortality for a few years.

                                    I Offline
                                    I Offline
                                    Iain Clarke Warrior Programmer
                                    wrote on last edited by
                                    #21

                                    Another point of ignorance exposed. If I can just do a chunky checkout, then merge on return without stepping on too many toes, the problem goes away. I had understood checkout to be more of a locking activity than it apparently is! And emailling back changes could be a handy trick. Iain.

                                    Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                                    P 1 Reply Last reply
                                    0
                                    • I Iain Clarke Warrior Programmer

                                      OK, that means absolutely nothing to me (not in this context anyways). This thread is showing more and more of my ignorance. Iain.

                                      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                                      R Offline
                                      R Offline
                                      Rage
                                      wrote on last edited by
                                      #22

                                      Iain Clarke wrote:

                                      more and more of my ignorance.

                                      I guess it is not : I doubt anyone understand what he meant but himself. In this context.

                                      T 1 Reply Last reply
                                      0
                                      • I Iain Clarke Warrior Programmer

                                        Another point of ignorance exposed. If I can just do a chunky checkout, then merge on return without stepping on too many toes, the problem goes away. I had understood checkout to be more of a locking activity than it apparently is! And emailling back changes could be a handy trick. Iain.

                                        Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                                        P Offline
                                        P Offline
                                        Paul Watson
                                        wrote on last edited by
                                        #23

                                        Iain Clarke wrote:

                                        I had understood checkout to be more of a locking activity than it apparently is!

                                        Yeah, it is a hangover from older source control systems which locked files on checkout and unlocked them on commit. SVN can be setup to work like this and other source control systems still do it (perforce for instance.) It is up to you what you prefer but you'll find most major open source projects use the "copy-modify-merge" model instead of the "lock-modify-unlock" model.

                                        regards, Paul Watson Ireland & South Africa

                                        Fernando A. Gomez F. wrote:

                                        At least he achieved immortality for a few years.

                                        I 1 Reply Last reply
                                        0
                                        • P Paul Watson

                                          Iain Clarke wrote:

                                          I had understood checkout to be more of a locking activity than it apparently is!

                                          Yeah, it is a hangover from older source control systems which locked files on checkout and unlocked them on commit. SVN can be setup to work like this and other source control systems still do it (perforce for instance.) It is up to you what you prefer but you'll find most major open source projects use the "copy-modify-merge" model instead of the "lock-modify-unlock" model.

                                          regards, Paul Watson Ireland & South Africa

                                          Fernando A. Gomez F. wrote:

                                          At least he achieved immortality for a few years.

                                          I Offline
                                          I Offline
                                          Iain Clarke Warrior Programmer
                                          wrote on last edited by
                                          #24

                                          So, I'm not terribly ignorant, just out of date. Hmm, is that better? Iain.

                                          Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                                          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