Linux与Windows CVS服务器配置与使用
2007-03-11 12:19:50 来源:WEB开发网核心提示: 然后用户A修改成如下,并提交到CVS服务器(一般将正常提交):int callby (int count){//addprintf("ExcelStor!");}void main(int argv,char *argc){//added by my cvsprintf
然后用户A修改成如下,并提交到CVS服务器(一般将正常提交):
int callby (int count)
{//add
printf("ExcelStor!
");
}
void main(int argv,char *argc)
{
//added by my cvs
printf("I am Cather
");
}
int mainexample()
{//add
printf("OK
");
}
接着用户B修改成如下:
int callby (int count)
{//add
printf("ExcelStor!
");
}
void main(int argv,char *argc)
{
//modified
printf("I am Cather
");
}
int mainexample()
{//add
printf("OK
");
}
当用户B选择“Commit Selection”时将提示:
cvs server: Up-to-date check failed for `example.h'
cvs [server aborted]: correct above errors first!
此时表明已经有用户对同一个文件example.h进行修改并提交到CVS服务器,这时要先选择“Update Selection”对本地example.h与CVS服务器上的example.h文件进行同步与合并,不用选中出现的任何选项,直接选择“OK”,这时将显示如下:
cvs -z9 update example.h (in directory C:my cvsSTWsrc)
RCS file: /home/cvsroot/STW/src/example.h,v
retrieving revision 1.5
retrieving revision 1.6
Merging differences between 1.5 and 1.6 into example.h
M example.h
***** CVS exited normally with code 0 *****
更多精彩
赞助商链接