首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何列出CVS存储库中的所有模块?

如何列出CVS存储库中的所有模块?
EN

Stack Overflow用户
提问于 2010-08-09 14:55:09
回答 3查看 50.8K关注 0票数 21

有没有一个命令可以返回CVS存储库中包含的模块名称列表?

作为CVS的新手,我想应该有一些类似于

代码语言:javascript
复制
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。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2010-08-10 20:28:42

正如在this answer中所描述的,基本上有三种方法可以做到这一点。哪一个适合您的情况,首先取决于您在客户端和服务器上使用的CVS版本,其次取决于您对“模块”的定义。

  1. 如果你引用的是CVS作者最初认为的模块,即作为CVSROOT/modules文件中的条目,那么cvs co -ccvs co -s将提供给你,两者之间唯一的区别是后者将按"status“对输出进行排序。你可以在这里读到关于模块文件的内容:http://cvsbook.red-bean.com/cvsbook.html#modules
  2. If你至少在使用CVS 1.12.8或CVS,并且你对模块的想法更多地对应于存储库中的实际目录,那么cvs ls应该是你的want.
  3. Finally,如果你确实想要一个远程目录清单,但你的服务器正在运行一个旧版本的CVS,那么就有一个技巧,首先执行一个“假”签出,然后模拟一个递归更新:

cvs -d CVSROOT co -l .

cvs -n up -d

票数 18
EN

Stack Overflow用户

发布于 2010-08-09 15:06:07

使用以下命令:

代码语言:javascript
复制
 cvs -d /usr/local/cvs ls

根据这个http://www.cvsnt.org/manual/html/ls.html,有同义词: dir,list,rls

当然,不要原谅通过以下方式查看所有可用命令:

代码语言:javascript
复制
cvs --help-commands
票数 1
EN

Stack Overflow用户

发布于 2010-08-09 15:01:51

你可以运行

代码语言:javascript
复制
cvs ls

要列出CVS >= 1.11中的树(请参阅cvs --版本),或者运行

代码语言:javascript
复制
cvs checkout CVSROOT/modules

查看模块配置文件。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3437885

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档