不止一次在cvs log命令中使用 -r tag_name 这样的形式, 在log和rlog中, -r与后面的revision号, 或tag/branch名字之间, 不能有空格.
其它命令呢? 下面的命令显示, CVSNT 2.5.01 中, 仅有log rlog这两个命令如此要求, 对于其它命令, 根据经验, -r与后面的参数之间的空格是可选的.
[zhao@zhaorufei dir] for i in $(cvs --help-commands 2>&1 | awk '/^/{print $1}'); do cvs -H $i 2>&1 | grep "^Usage.*-r"; done
Usage: cvs annotate [-lRf] [-r rev] [-D date] [files...]
Usage: cvs chacl [-R] [-r branch] [-u user] [-j branch] [-n] [-p priority] [-m message] [-a [no]{read|write|create|tag|control|all
|none}[,...]] [-d] [file or directory...]
Usage: cvs export [-NRfln] [-r rev] [-D date] [-d dir] [-k kopt] module...
Usage: cvs history [-report] [-flags] [-options args] [files...]
Usage: cvs init [-f] [-n] [-r remote_root] [-a alias] [-d description]
Usage: cvs info [-c|-s|-b|-r server] [cvswrappers|cvsignore|config|
]
Usage: cvs log [-lRhtNbT] [-r[revisions]] [-B bugid] [-d dates] [-s states]
Usage: cvs ls [-q] [-e] [-l] [-R] [-r rev] [-D date] [-t] [modules...]
Usage: cvs passwd [-a] [-x] [-X] [-r real_user] [-R] [-D domain] [username]
Usage: cvs rannotate [-lRf] [-r rev] [-D date] [files...]
Usage: cvs rchacl [-R] [-r branch] [-u user] [-j branch] [-n] [-p priority] [-m message] [-a [no]{read|write|create|tag|control|al
l|none}[,...]] [-d] [module...]
Usage: cvs rlog [-lRhtNbT] [-r[revisions]] [-B bugid] [-d dates] [-s states]
Usage: cvs rtag [-abdFflnR] [-r rev|-D date] tag modules...
Usage: cvs tag [-bcdFflR] [-r rev|-D date] tag [files...]
Usage: cvs unedit [-lRwy] [-r] [-u user] [-b bug] [-m message] [files...]
Usage: cvs update [-ACPdflRpbmt] [-k kopt] [-r rev] [-D date] [-j rev]
阅读(696) | 评论(0) | 转发(0) |