2013-01-18 56 views
0

我一直在搜寻CVSman页面一会儿,但我无法关注这个CVS命令的意思。在手册页中似乎有-F的多个列表,我不确定这是用来指定一个日志文件还是什么。它是否合并${newTag}${mainTag}或是constantPerl的标签? mainTag被定义为“生产”和newTag传入作为参数传递给脚本运行此:这个CVS命令究竟做了什么?

cvs -d /home/main/cvs rtag -r ${newTag} -F ${mainTag} constantPerl 

回答

2

声明:我因为很久以前没有使用CVS。

根据的帮助下,您的命令

  • 用途的/ home /主/ CVS作为存储库
  • 创建远程标签(我不记得在本地和远程标签之间的差)
  • 用途newTag作为修订其用于创建新的标签
  • 使用mainTag作为名称为新标签名
  • 指定与-F任何与现在要创建的名称相同的预先存在的标签将被移动以指向当前修订版(通过
  • 指定)仅在constantPerl模块中创建标签,但在其他模块中不创建标签。

 

$ cvs --help rtag 
Usage: cvs rtag [-abdFflnR] [-r rev|-D date] tag modules... 
    -a Clear tag from removed files that would not otherwise be tagged. 
    -b Make the tag a "branch" tag, allowing concurrent development. 
    -B Allows -F and -d to disturb branch tags. Use with extreme care. 
    -d Delete the given tag. 
    -F Move tag if it already exists. 
    -f Force a head revision match if tag/date not found. 
    -l Local directory only, not recursive. 
    -n No execution of 'tag program'. 
    -R Process directories recursively. 
    -r rev Existing revision/tag. 
    -D Existing date. 
(Specify the --help global option for a list of other help options)