简体   繁体   English

git cvsexportcommit pserver失败

[英]git cvsexportcommit pserver fails

I'm using git and a cvs repo i've trying to follow 我正在尝试使用git和CVS回购

How to export revision history from mercurial or git to cvs? 如何将修订历史记录从水银或git导出到cvs?

except i'm using a -d pserver instead of -w local cvs repo 除了我使用的是-d pserver而不是-w local cvs repo

I've done a git cvsimport and that seems to be good. 我做了一个git cvsimport,这似乎很好。 I am now trying to export a single test change back to the csv repo and it is failing 我现在正尝试将单个测试更改导出回csv存储库,但失败了

I've tried the following commands with the following results 我尝试了以下命令,结果如下

command: 命令:

export $GIT_DIR=~/project/.git
git cvsexportcommit -d :pserver:username:password@someserver/cvsrepo -u -p -c ORIG_HEAD HEAD

Did not find COMMITID in the parents for the commit! at /usr/lib/git-cvsexportcommit line 125.

command: 命令:

export $GIT_DIR=~/project/.git
git cvsexportcommit -d :pserver:username:password@someserver/cvsrepo -u -p -c COMMITID

checking if patch will apply
cvs update: cannot open CVS/Entries for reading: No such file or directory
cvs [update aborted]: no repository
cvs -d :pserver:username:password@someserver/cvsrepo update /path/file.java: 256 at /usr/lib/git-core/git-vcxexportcommit line 436.

note: i've tried moving the GIT_DIR up or down a level as well. 注意:我也尝试将GIT_DIR上下移动。

Unfortunatley, git cvsexportcommit requires the presence of an actual CVS checkout as specified by the -w argument. 不幸的是, git cvsexportcommit要求存在-w参数指定的实际CVS检出。 This is because it simply issues the necessary cvs commit command(s) and doesn't interact with the CVS server directly. 这是因为它仅发出必要的cvs commit命令,而不直接与CVS服务器交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM