有没有一个命令可以返回CVS存储库中包含的模块名称列表?
作为CVS的新手,我想应该有一些类似于
cvs -d /usr/local/cvs listmodules
我应该用什么替换listmodules
来获得CVS存储库中所有模块的列表?
为了处理Dewfy的评论,cvs --help-commands
返回以下内容:
add Add a new file/directory to the repository admin Administration front end for rcs annotate Show last revision where each line was modified checkout Checkout sources for editing commit Check files into the repository diff Show differences between revisions edit Get ready to edit a watched file editors See who is editing a watched file export Export sources from CVS, similar to checkout history Show repository access history import Import sources into CVS, using vendor branches init Create a CVS repository if it doesn't exist kserver Kerberos server mode log Print out history information for files login Prompt for password for authenticating server logout Removes entry in .cvspass for remote repository pserver Password server mode rannotate Show last revision where each line of module was modified rdiff Create 'patch' format diffs between releases release Indicate that a Module is no longer in use remove Remove an entry from the repository rlog Print out history information for a module rtag Add a symbolic tag to a module server Server mode status Display status information on checked out files tag Add a symbolic tag to checked out version of files unedit Undo an edit command update Bring work tree in sync with repository version Show current CVS version(s) watch Set watches watchers See who is watching a file
的版本是1.11.22。
发布于 2010-08-10 20:28:42
正如在this answer中所描述的,基本上有三种方法可以做到这一点。哪一个适合您的情况,首先取决于您在客户端和服务器上使用的CVS版本,其次取决于您对“模块”的定义。
CVSROOT/modules
文件中的条目,那么cvs co -c
或cvs co -s
将提供给你,两者之间唯一的区别是后者将按"status“对输出进行排序。你可以在这里读到关于模块文件的内容:http://cvsbook.red-bean.com/cvsbook.html#modulescvs ls
应该是你的want.cvs -d CVSROOT co -l .
cvs -n up -d
发布于 2010-08-09 15:06:07
使用以下命令:
cvs -d /usr/local/cvs ls
根据这个http://www.cvsnt.org/manual/html/ls.html,有同义词: dir,list,rls
当然,不要原谅通过以下方式查看所有可用命令:
cvs --help-commands
发布于 2010-08-09 15:01:51
你可以运行
cvs ls
要列出CVS >= 1.11中的树(请参阅cvs --版本),或者运行
cvs checkout CVSROOT/modules
查看模块配置文件。
https://stackoverflow.com/questions/3437885
复制相似问题