2010-10-19 27 views

回答

6

如果您使用的是Mercurial 1.6或更高版本,則有用於指定修訂集的內置函數語言;詳情請參閱hg help revsets

在你的情況,你可以使用hg log -r children(XXX)顯示修訂XXX,或hg log -r descendants(XXX)的直接子以示與XXX所有的變更作爲祖先。

2

使用捆綁的children extensionhg 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 
相關問題