代码之家  ›  专栏  ›  技术社区  ›  Zaid

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

cvs
  •  19
  • Zaid  · 技术社区  · 16 年前

    是否有返回包含在CVS存储库中的模块名称列表的命令?

    作为简历的新手,我想应该有一些符合

    cvs -d /usr/local/cvs listmodules
    

    我应该换什么 listmodules 获取cvs存储库中所有模块的列表?


    为了回应德威的评论, 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
    

    cvs版本是 1.11 .

    3 回复  |  直到 13 年前
        1
  •  16
  •   Community Mohan Dere    9 年前

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

    1. 如果您引用的模块与CVS作者最初认为的一样,即 CVSROOT/modules 然后文件 cvs co -c 或 cvs co -s 这样,两者之间唯一的区别就是后者将按“状态”对输出进行排序。您可以在此处阅读模块文件: http://cvsbook.red-bean.com/cvsbook.html#modules

    2. 如果您至少使用了cvs 1.12.8或cvsnt,并且您对模块的想法更符合存储库中的实际目录,那么 cvs ls 应该是你想要的。

    3. 最后,如果确实是在远程目录列表之后,但服务器运行的是较旧版本的cvs,那么首先执行“假”签出,然后模拟递归更新的技巧是:

      cvs-d[cvsrot]公司

      CVN-N U-D

        2
  •  1
  •   Dewfy    16 年前

    使用下列内容:

     cvs -d /usr/local/cvs ls
    

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

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

    cvs --help-commands
    
        3
  •  0
  •   Mikel    16 年前

    你可以跑

    cvs ls
    

    要在cvs>=1.11中列出树(请参见cvs--版本),或运行

    cvs checkout CVSROOT/modules
    

    查看模块配置文件。

    推荐文章