« Grants.gov Stakeholder's Meeting 10/25/06. And I don't mean to be annoying. Honest! | Main | Solpath: an open source grants management package »

October 27, 2006

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451754b69e200d834c025f453ef

Listed below are links to weblogs that reference Resolving CVS Commit Conflicts with Word Documents:

Comments

Thomas Beck

Alternately, you can just implement file locking (a.k.a. "reserved checkouts") for all of your binary files so that you don't get into this situation to begin with.

Just a suggestion ;-)

rbuccigrossi

Good point. If you prefer "pessimistic locking" you have two choices:

- Use the CVS Watch/Edit capability
- Use Reserved checkouts (see http://www.thathost.com/wincvs-howto/cvsdoc/cvs_10.html )

I just have a strong fondness for "optimistic locking".

Thomas Beck

I too am a big fan of optimistic locking. It tends to be my default posture for projects using CVS or SVN unless I'm dealing with a team that just can't handle that type of responsibility. However, after a couple of conflict/rename cycles, I tend to get a bit pessimistic.

rbuccigrossi

You've won me over: but I can have it both ways now! In our repositories, we put project plans, schedules, and other binary work products in a "Documents" directory, while source code is in other directories. Thanks to the relatively new watch/edit/unedit feature I can essentially get pessimistic locking for my binary documents (through TortoiseCVS).

I upgraded my CVS server to 1.11.22 (to support "cvs watch") and set "cvs watch on" for our Documents directory. When you do a checkout, files in that directory are read-only until you run a "cvs edit". TortoiseCVS will only let one person "cvs edit" a binary file. While it's a client-based restriction, it functionally keeps two people from editing the same binary file simultaneously.

The file is unlocked once the user does a commit or "cvs unedit". We'll see how well this works...

romy

I am using CVS for my project. It worked fine for me for a long time but its been few days em getting a commit error. I get this error when i edit any of my project's file, hence unable to commit after i edit a file. I had deleted the whole folder from my system and used check-out option to get all latest files from the server but again when i edit any file, it gives me the following error.

""""""cvs commit: file `templates/admin_tpl/cms.tpl' had a conflict and has not been modified
cvs [commit aborted]: correct above errors first!""""""""""


error... Any help??
THanks in advance

rbuccigrossi

Is "templates/admin_tpl/cms.tpl" one of the files in your repository? If so, in the very worst case you can:

* find the file[cvsroot]/[project]/templates/admin_tpl/cms.tpl,v on your CVS server,
* move it out of the cvs repository
* check out yet another copy of the project (now without cms.tpl), keeping the old cms.tpl somewhere
* and readd cms.tpl using a "cvs add" to the project

The downside is that it you will lose any comments associated with the file.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment