hgext/children.py
changeset 9055 8da4e1d5bef2
parent 8934 9dda4c73fc3b
child 9253 d6d811d90976
equal deleted inserted replaced
9054:84be8a8cc8b0 9055:8da4e1d5bef2
    16 
    16 
    17 
    17 
    18 def children(ui, repo, file_=None, **opts):
    18 def children(ui, repo, file_=None, **opts):
    19     """show the children of the given or working directory revision
    19     """show the children of the given or working directory revision
    20 
    20 
    21     Print the children of the working directory's revisions. If a
    21     Print the children of the working directory's revisions. If a revision is
    22     revision is given via -r/--rev, the children of that revision will
    22     given via -r/--rev, the children of that revision will be printed. If a
    23     be printed. If a file argument is given, revision in which the
    23     file argument is given, revision in which the file was last changed (after
    24     file was last changed (after the working directory revision or the
    24     the working directory revision or the argument to --rev if given) is
    25     argument to --rev if given) is printed.
    25     printed.
    26     """
    26     """
    27     rev = opts.get('rev')
    27     rev = opts.get('rev')
    28     if file_:
    28     if file_:
    29         ctx = repo.filectx(file_, changeid=rev)
    29         ctx = repo.filectx(file_, changeid=rev)
    30     else:
    30     else: