Mercurial permet aux parents d'examiner les parents d'une révision donnée. Cela peut facilement être utilisé pour faire défiler le DAG vers l'arrière. J'ai besoin de traverser le DAG en avant. Y a-t-il une commande hg children
?Existe-t-il une commande enfants pour compléter la commande parents?
4
A
Répondre
6
Si vous utilisez Mercurial 1.6 ou version ultérieure, il existe un langage fonctionnel intégré pour spécifier des ensembles de révisions; Voir hg help revsets
pour plus de détails.
Dans votre cas, vous devez utiliser hg log -r children(XXX)
pour montrer aux enfants immédiats de révision XXX
ou hg log -r descendants(XXX)
pour afficher toutes les changesets avec XXX
comme un ancêtre.
2
Utilisez le package 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