Discussion:
cvs2git migration problem on Windows CMD
d***@gmail.com
2014-01-29 20:45:24 UTC
Permalink
Hello friends I have a local cvs repository. i want to migrate Git from CVS
repository by using cvs2svn/cvs2git tool.i am using Cygwin shell for run
commands. and i am successfully able to execute and get the output . But i
want to ignore Cygwin and want to run all commands on CMD windows. for that
i installed all required software in my system. when run following command i
get below errors.


command is= python ./cvs2git --blobfile=D:\CVSDump\git-help2-blob.dat
--dumpfile=D:\CVSDump\git-help2-dump.dat D:\CVSRepository \Help
--username=cvs2git --retain-conflicting-attic-files


output :
----- pass 1 (CollectRevsPass) ----- Examining all CVS ',v' files...
D:\CVSRepository\Help\.classpath,v D:\CVSRepository\Help\.project,v
D:\CVSRepository\Help\.settings\.jsdtscope,v
D:\CVSRepository\Help\.settings\org.eclipse.jdt.core.prefs,v
D:\CVSRepository\Help\.settings\org.eclipse.wst.common.component,v
D:\CVSRepository\Help\.settings\org.eclipse.wst.common.project.facet.core.xml,v
D:\CVSRepository\Help\.settings\org.eclipse.wst.jsdt.ui.superType.container,v
D:\CVSRepository\Help\.settings\org.eclipse.wst.jsdt.ui.superType.name,v
D:\CVSRepository\Help\WebContent\HelpDump(23.04.12).sql,v
D:\CVSRepository\Help\WebContent\index.jsp,v
D:\CVSRepository\Help\WebContent\META-INF\MANIFEST.MF,v
.
.
.
.
.
Done
Time for pass1 (CollectRevsPass): 2.660 seconds.
----- pass 2 (CleanMetadataPass) ----- Converting metadata to UTF8...
Done Time for pass2 (CleanMetadataPass): 0.049 seconds.
----- pass 3 (CollateSymbolsPass) -----
Checking for forced tags with commits...
Done Time for pass3 (CollateSymbolsPass): 0.040 seconds.
----- pass 4 (FilterSymbolsPass) -----
Filtering out excluded symbols and summarizing items...
ERROR: The command 'cvs -Q -f -d :local:D:\\CVSRepository co -r1.1 -p -kb
Help/.classpath' failed with exit status=0
and the following output: cvs checkout: cwd=D:\cvs2svn-2.4.0
,current=D:\cvs2svn-2.4.0



--
View this message in context: http://tigris-scm.10930.n7.nabble.com/cvs2git-migration-problem-on-Windows-CMD-tp95977.html
Sent from the cvs2svn - dev mailing list archive at Nabble.com.

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
Michael Haggerty
2014-01-30 01:50:51 UTC
Permalink
Post by d***@gmail.com
Hello friends I have a local cvs repository. i want to migrate Git from CVS
repository by using cvs2svn/cvs2git tool.i am using Cygwin shell for run
commands. and i am successfully able to execute and get the output . But i
want to ignore Cygwin and want to run all commands on CMD windows. for that
i installed all required software in my system. when run following command i
get below errors.
[...]
ERROR: The command 'cvs -Q -f -d :local:D:\\CVSRepository co -r1.1 -p -kb
Help/.classpath' failed with exit status=0
and the following output: cvs checkout: cwd=D:\cvs2svn-2.4.0
,current=D:\cvs2svn-2.4.0
The error message above tells what happened. cvs2git tried to run the
command

cvs -Q -f -d :local:D:\\CVSRepository co -r1.1 -p -kb Help/.classpath

The command exited with exit status 0 (i.e., no error) but it wrote
output to stderr. Since such output is not expected, cvs2git considers
it an error. The output was

cvs checkout: cwd=D:\cvs2svn-2.4.0 ,current=D:\cvs2svn-2.4.0

My guess is that the "cvs" command on your system is a batch file that
is generating this extra output for debugging purposes. If so, please
change the batch script, or tell cvs2git to run cvs via a different
command that doesn't generate output by using the --cvs=PATH option.

Michael
--
Michael Haggerty
***@alum.mit.edu
http://softwareswirl.blogspot.com/

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
d***@gmail.com
2014-01-30 08:10:58 UTC
Permalink
@Micheal Thanks for your quick replay. really i appreciate you. i simple
install TortoiseCVS for windows. i am not using any cvs batch file. can you
tell me why system run below command

cvs -Q -f -d :local:D:\\CVSRepository co -r1.1 -p -kb Help/.classpath

see CVSRepository is my cvs repository directory , Help is cvs module and
.classpath is one file which is present inside the Help module. i hope i
give may be wrong path. i just describe which command i run

python ./cvs2git --blobfile=D:\CVSDump\git-help2-blob.dat
--dumpfile=D:\CVSDump\git-help2-dump.dat D:\CVSRepository \Help
--username=cvs2git --retain-conflicting-attic-files

see CVSDump is a folder where i want to store both blob and dump files.
D:\CVSRepository \Help is my local cvs module name

I run this command within cvs2svn folder which I downloaded.
i not useing any --use-cvs or --use-rcs and not install any software for
same.
please tell me is there any problem with this command.



--
View this message in context: http://tigris-scm.10930.n7.nabble.com/cvs2git-error-tp95977p95986.html
Sent from the cvs2svn - dev mailing list archive at Nabble.com.

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
Michael Haggerty
2014-01-30 10:55:08 UTC
Permalink
Post by d***@gmail.com
@Micheal Thanks for your quick replay. really i appreciate you. i simple
install TortoiseCVS for windows. i am not using any cvs batch file. can you
tell me why system run below command
cvs -Q -f -d :local:D:\\CVSRepository co -r1.1 -p -kb Help/.classpath
The cvs2git script has to get the contents of file revisions out of CVS.
By default, the way it does so is to use the "cvs" program itself like
the command line above. Probably if you run the same command by hand in
the command line, you will get the same output to stderr.
Post by d***@gmail.com
[...]
i not useing any --use-cvs or --use-rcs and not install any software for
same.
please tell me is there any problem with this command.
--use-cvs is the default. The other alternatives are --use-rcs
(requires software from RCS) and --use-external-blob-generator, which
doesn't require any external software.

The problem is not with how you are invoking cvs2git but rather how CVS
is installed on your system. It is generating extraneous output, and
that is bothering cvs2git.

If all else fails, maybe you could wrap cvs in a batch file that
discards stderr explicitly, then use the --cvs option to tell cvs2git
where to find your batch file. I'm not a Windows user so I can't help
you with the details.

Michael
--
Michael Haggerty
***@alum.mit.edu
http://softwareswirl.blogspot.com/

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
d***@gmail.com
2014-01-30 22:16:57 UTC
Permalink
Thanks Micheal for your help. i can not find where i made the mistake .Even i
reinstall TortoiseCVS and keep in separate batch file. still i get the same
error. but i strange that when i run the same command in Cygwin in same
system , pass 4 (FilterSymbolsPass) take few second and after that execute
successfully, but in command line it throws error with status 0.

I have installed following tools on my machine.
1) cvs2svn-2.4.0
2) python-2.7
3)CVS-1.12.5
4)git-1.7.9

cvs works as a local CVS repository. My question is there any other way
through which i can generate blob and dump files from CVS repository?





--
View this message in context: http://tigris-scm.10930.n7.nabble.com/cvs2git-error-tp95977p96001.html
Sent from the cvs2svn - dev mailing list archive at Nabble.com.

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
Michael Haggerty
2014-01-30 23:30:03 UTC
Permalink
Post by d***@gmail.com
Thanks Micheal for your help. i can not find where i made the mistake .Even i
reinstall TortoiseCVS and keep in separate batch file. still i get the same
error. but i strange that when i run the same command in Cygwin in same
system , pass 4 (FilterSymbolsPass) take few second and after that execute
successfully, but in command line it throws error with status 0.
I have installed following tools on my machine.
1) cvs2svn-2.4.0
2) python-2.7
3)CVS-1.12.5
4)git-1.7.9
cvs works as a local CVS repository. My question is there any other way
through which i can generate blob and dump files from CVS repository?
You can try --use-external-blob-generator.

Michael
--
Michael Haggerty
***@alum.mit.edu
http://softwareswirl.blogspot.com/

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
d***@gmail.com
2014-02-01 18:15:56 UTC
Permalink
Ok Michael i will try it later . I need another help from you. i want copy
remote CVS repository which have anonymous pserver authentication. i already
followed below link and i want take copy of remote server by using rsync
command but it not worked for me.

http://cvs2svn.tigris.org/faq.html#repoaccess

i use command format like

rsync -av rsync:pserver:***@XXXX.in:/cvsroot/PROJECTNAME

please guide me how i convert CVS repository by rsync command or any other
command through which it will do this fast.

Thanks
Ajit



--
View this message in context: http://tigris-scm.10930.n7.nabble.com/cvs2git-error-tp95977p96016.html
Sent from the cvs2svn - dev mailing list archive at Nabble.com.

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
d***@gmail.com
2014-02-03 13:08:19 UTC
Permalink
Hi Michael i am tring to take copy of CVS repository to my localcal system
and i get this error

command :

rsync -av rsync:***@cvs.example.org:/CVSRepository/path
/cygdrive/E/LocalCVSDump

error:
ssh: Could not resolve hostname rsync: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at
/usr/src/ports/rsync/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605)
[Receiver=3.0.9]

i also tried to use cvsclone command but get the bellow error
cvsclone -d :pserver:***@cvs.example.org:/CVSRepository/path module
cvsclone: command not found

Here system cannot finnd cvsclone command . but how can i install cvsclone
through Cygwin ?





--
View this message in context: http://tigris-scm.10930.n7.nabble.com/cvs2git-error-tp95977p96022.html
Sent from the cvs2svn - dev mailing list archive at Nabble.com.

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
Michael Haggerty
2014-02-03 15:36:00 UTC
Permalink
Post by d***@gmail.com
Hi Michael i am tring to take copy of CVS repository to my localcal system
and i get this error
/cygdrive/E/LocalCVSDump
ssh: Could not resolve hostname rsync: Name or service not known
I think you've typed the source URL wrong. I think you need something like

rsync -av rsync://***@cvs.example.org/CVSRepository/path
/cygdrive/E/LocalCVSDump

Of course, this will only work if the host at cvs.example.org has an
rsync server running and you have permissions to access it.
Post by d***@gmail.com
i also tried to use cvsclone command but get the bellow error
cvsclone: command not found
Here system cannot finnd cvsclone command . but how can i install cvsclone
through Cygwin ?
I have no idea. It is not a standard command, so you will probably have
to download and build it yourself.

Michael
--
Michael Haggerty
***@alum.mit.edu
http://softwareswirl.blogspot.com/

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

To unsubscribe from this discussion, e-mail: [dev-***@cvs2svn.tigris.org].
Loading...