Re: cvs2git error

Michael Haggerty <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
Thomas Gardiner wrote:
> I'm hoping for a little help.
> 
> I'm trying to convert a cvs repo. to a git repo. and am running into
> an error.  The error and command looks like this:
> 
> $ ../cvs2svn/cvs2svn-trunk/cvs2git --options=../cvs2git-athena-rfx.options
> 0.304685: Conversion start time: 2010-02-07 05:02:05 MST
> 0.309014: ----- pass 1 (CollectRevsPass) -----
> 0.310163: Examining all CVS ',v' files...
> 0.316459: /disk2/cvs/athena-rfx/CVSROOT/checkoutlist,v
> 0.365369: Exception occurred while parsing
> /disk2/cvs/athena-rfx/CVSROOT/checkoutlist,v
> ERROR: The command 'cvs -q -R -f -d /disk2/cvs/athena-rfx co -r1.1 -p
> CVSROOT/checkoutlist' failed with exit status=0
> and the following output:
> cvs: WARNING: Read-only repository access mode selected via `cvs -R'.
> Using this option to access a repository which some users write to may
> cause intermittent sandbox corruption.

I haven't seen that warning before.  Perhaps it was added in a new
version of CVS?  (Or it's from an old version?)  Would you please tell
us what version of CVS you are using?

For whatever reason, CVS is outputting this warning on standard error,
and cvs2git interprets any output on stderr as a command failure.  The
command that is being invoked is sown in the error message.  If you can
figure out a way to make that command run without writing to stderr,
then your problem will be solved.  Perhaps it has another option to
suppress this output?

Other alternatives:

* Wrap cvs in a script that eats this particular output.

* Remove the entries containing the '-R' option from
cvs_revision_manager.py:CVSRevisionReader._possible_global_arguments
(assuming that your repository is not read-only).

* Work on process.py:PipeStream.close() method to ignore the error
output in this particular case, perhaps be deriving a subclass of
PipeStream whose close() method checks the exception's exit_status and
error_output.

Please let us know what you find out so that we can fix this.

Michael

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2445832

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.