Claude:

When working with code repositories, the first thing each developer does
is download the current version of the entire repository.  This is
called their working copy.  When you give them an issue/defect to work
on, they...

1. Lock the file (noted on the server)
2. Download the HEAD revision - the latest copy of the code - in case
someone else has changed it since their last download
3. Start working on their job

Then once they are finished with their files, they commit them.  This
does two things...

1. Releases the lock on the server
2. Makes the file read-only on their working copy again

You can work on any file on your disk ad inifinitum, however, source
control only kicks it when a developer COMMITS the file back to the
server.

You could then also specify one of your developers as a build
coordinator.  Before the code gets put into the main tag (you usually
don't want to build off of the HEAD revision) they download the code
from each issue and tests that it a) fixes the defect correctly, and b)
does not cause conflicts with other code.  Again, this step it optional
and for complex projects.

CVS and SVN both support file locking on the server.  If you do not want
to support file locking, you then move the responsibility of build
coordinator to each developer.  If they commit a file and the server
notifies them of conflicts, it is then their responsibility to merge the
code, test it thoroughly again, and then re-commit the file.

Hope that helps,


Steve Brownlee
http://www.fusioncube.net/


-----Original Message-----
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 27, 2006 4:22 PM
To: CF-Talk
Subject: Re: Simple source control

 >>If I have the file checked out and someone else attempts to download
the file,

So you mean one has to download every file he wants to work on?
What if he opens a copy of the file he already has on his disk?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265168
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to