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

发布于 2024-09-28 04:06:25 字数 97 浏览 3 评论 0原文

Mercurial 提供了命令parents 来检查给定修订版的父级。这可以很容易地用于向后遍历 DAG。我需要向前遍历 DAG。有hg kids命令吗?

Mercurial provides the command parents to examine a given revision's parent(s). This can easily be used to Traverse the DAG backward. I need to traverse the DAG forward. Is there a hg children command?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

生生不灭 2024-10-05 04:06:25

如果您使用 Mercurial 1.6 或更高版本,则有一个内置的函数语言用于指定修订集;请参阅 hg help revsets 了解完整详细信息。

在您的情况下,您将用于

hg log -r "children(XXX)"

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

hg log -r "descendants(XXX)"

显示以 XXX 作为祖先的所有变更集。

If you're using Mercurial 1.6 or later, there is a built-in functional language for specifying sets of revisions; see hg help revsets for full details.

In your case, you would use

hg log -r "children(XXX)"

to show immediate children of revision XXX, or

hg log -r "descendants(XXX)"

to show all changesets with XXX as an ancestor.

怪我鬧 2024-10-05 04:06:25

使用捆绑的children 扩展hg 帮助孩子 (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

Use the bundled 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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文