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

是否有子命令来补充父命令?

  •  5
  • deft_code  · 技术社区  · 15 年前

    hg children 命令?

    2 回复  |  直到 15 年前
        1
  •  8
  •   Julio    7 年前

    如果您使用的是Mercurial 1.6或更高版本,则有一种内置的函数语言用于指定修订集;请参见 hg help revsets 详细情况。

    在你的情况下,你会使用

    hg log -r "children(XXX)"
    

    显示修订的直接子级 XXX ,或

    hg log -r "descendants(XXX)"
    

    显示所有变更集的步骤 XXX公司

        2
  •  2
  •   Geoffrey Zheng    15 年前

    使用捆绑的 children extension hg help children (1.5):

    hg children [-r REV] [FILE]
    
    show the children of the given or working directory revision
    
        Print the children of the working directory's revisions. If a revision is
        given via -r/--rev, the children of that revision will be printed. If a
        file argument is given, revision in which the file was last changed (after
        the working directory revision or the argument to --rev if given) is
        printed.
    
    options:
    
     -r --rev       show children of the specified revision
        --style     display using template map file
        --template  display with template
    
    推荐文章