dvcs - Step-by-step bazaar workflow -
where work, work (mostly) in pairs. have seen need version control, , using bazaar our distributed version control system, due apparent flexibility.
after experimentation, have agreed in order set project, should use following steps:
on server
- bzr init (initializes project)
- bzr add (tells bzr track files in current directory, please make sure not have unnecessary files in project skeleton before run command)
- bzr commit -m "initial commit" (commits added files bzr version control)
on development machine
- on local machine, bzr branch
project_dir
daily routine
we trying establish workflow work us. have agreed daily:
- pull down latest changes
pull_path
- code , commit. nb. commits saved on local machine.
- see step 1.
- push changes
push_path
(nb.push_path
=pull_path
)- if there conflict:
- try bzr resolve first.
- if fails, partner , manual resolve (open file.other, file.base , file.this , make relevant changes).
- commit changes (bzr commit)
- push again (bzr push)
- repeat above sub-points (#5) until conflicts resolved.
in terms of workflow, right way version control bazaar? have encountered problems our commit comments 'change ownership' everytime other team member pushes changes server. i'm pretty sure not how it's supposed work, may due options selected during project setup phase.
as vcs evangelist here, working on guide used team, , particularly new people team grows, , great have 'proper' set of steps follow in getting work done. contributions in establishing nice , simple step-by-step flow best out of bzr appreciated. please add contributions here.
thank in advance :)
what operating system(s) run on server , development machines? , file systems? windows file systems' permissions , owner / group differ same files on unix file system. might first stumbling block.
bazaar workflow:
run main tree on repo server, , checkout locally:
bzr checkout sftp://path/to/repo/project /var/source/project
branch checkout locally / dev environment:
bzr branch sftp://path/to/repo /var/www/project
don't work on checkout, work on dev branch. work , commit there, using various bzr commands.
once work module / bug fix / task finished, merge (not push) main repo:
//in /var/source/project bzr merge /var/www/project //resolve conflicts bzr resolve //commit merge bzr commit -m "work module | task | bug fixed"
because /var/source/project checkout, repo on repo server updated automatically. enables 2 or more developers work on same project concurrently, without needing push , pull whole time.
Comments
Post a Comment