Changes between Version 3 and Version 4 of UfoRevisionControl


Ignore:
Timestamp:
Feb 19, 2011, 2:37:20 PM (14 years ago)
Author:
Matthias Vogelgesang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UfoRevisionControl

    v3 v4  
    4444There are already very good branching [http://nvie.com/posts/a-successful-git-branching-model/ models] out there. Although it's up to everyone how he will work on his personal branches, I will show how I use Bazaar to ease my life.
    4545
    46 First of all, I import some of the written code using the steps written above. Then I clean the project directory and clone the committed code as a named branch and bind to the server:
     46First of all, I import some of the written code using the steps written above.
    4747{{{
     48cd project-dir
     49bzr init .
     50bzr add *
     51bzr commit
     52bzr init bzr+ssh://user@ufo.kit.edu/user/project
     53bzr push bzr+ssh://user@ufo.kit.edu/user/project
     54}}}
     55
     56Then I clean the project directory and clone the committed code as a named branch and bind to the server:
     57{{{
     58rm -rf *
    4859bzr clone bzr+ssh://user@ufo.kit.edu/user/project upstream
    49 cd upstream && bzr bzr bind bzr+ssh://user@ufo.kit.edu/user/project
     60cd upstream
     61bzr bind bzr+ssh://user@ufo.kit.edu/user/project
    5062}}}
    5163I ''never'' work directly in the upstream branch because every commit would be visible immediatly. Therefore, I branch from the `upstream` branch a local branch where development happens:
    5264{{{
     65cd ..
    5366bzr clone upstream/ local
    5467}}}
    5568Whenever I need to work on the same project but tackling different problems, I branch from the `local` branch to a feature specific branch. To push my changes, I just pull (no merging needed) the changes from the `local` branch into the `upstream` branch
    5669{{{
    57 cd upstream && bzr pull ../local
     70cd upstream
     71bzr pull ../local
    5872}}}
    5973
     
    6377
    6478[[Image(branch-model.png)]]
     79[[Image(branch-model.png)]]