git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] git cvsexportcommit -W

From
RGReto Glauser <linux@blinkeye.ch>
Date
Jun 10, 2009, 14:38 UTC
Message-ID
<ea9100509a9a5e21b9dc193cd34f812b@blinkeye.ch>
I followed a tutorial about bi-directional git-cvs usage:
http://blogs.frugalware.org/vmiklos/2008/06/14/new_in_git_1_5_6_git_cvsexportcommit_w?blog=7&c=1&page=1&more=1&title=new_in_git_1_5_6_git_cvsexportcommit_w&tb=1&pb=1&disp=single

The new git cvsexportcommit option '-W' allows to use the same directory for a CSV checkout and git checkout. But it doesn't work with the autocommit feature '-c':

# git cvsexportcommit -v -W -c -p -u 65f12da
Resetting to 88de7d44a6d6343077645fb43b63e3f2907d6fdd
Applying to CVS commit 65f12da1b98c5a3546356a8c42b6aff005531cd7 from parent
88de7d44a6d6343077645fb43b63e3f2907d6fdd
Checking if patch will apply
Applying
Patch applied successfully. Adding new files and directories to CVS
Commit to CVS
Patch title (first comment line): add content to file4
Autocommit
  cvs commit -F .msg 'file4'
Committed successfully to CVS
HEAD is now at 65f12da... add content to file4

Now, even though everything looks OK, the CVS is not up-to-date. Removing the autocommit feature (-c) reveals the problem:

# git cvsexportcommit -v -W -p -u 65f12da Resetting to 88de7d44a6d6343077645fb43b63e3f2907d6fdd Applying to CVS commit 65f12da1b98c5a3546356a8c42b6aff005531cd7 from parent 88de7d44a6d6343077645fb43b63e3f2907d6fdd Checking if patch will apply Applying Patch applied successfully. Adding new files and directories to CVS Commit to CVS Patch title (first comment line): add content to file4 Ready for you to commit, just run:

   cvs commit -F .msg 'file4'
HEAD is now at 65f12da... add content to file4
Now, 
# cvs commit -F .msg 'file4'
doesn't do anything (but return value is 0).
You need to use '-f' to force the update:

# cvs commit -f -F .msg 'file4' /tmp/CVS/project1/file4,v <-- file4 new revision: 1.2; previous revision: 1.1

I'm using git-1.6.3.1.
Message 1 of 1 in “[BUG] git cvsexportcommit -W”
  1. Reto GlauserJun 10, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.