hgext/children.py
changeset 7986 c756e695012a
parent 7369 87158be081b8
child 8026 683d8ebcf434
equal deleted inserted replaced
7985:0edca606c0f1 7986:c756e695012a
    13 
    13 
    14 
    14 
    15 def children(ui, repo, file_=None, **opts):
    15 def children(ui, repo, file_=None, **opts):
    16     """show the children of the given or working dir revision
    16     """show the children of the given or working dir revision
    17 
    17 
    18     Print the children of the working directory's revisions.
    18     Print the children of the working directory's revisions. If a
    19     If a revision is given via --rev, the children of that revision
    19     revision is given via --rev, the children of that revision will be
    20     will be printed. If a file argument is given, revision in
    20     printed. If a file argument is given, revision in which the file
    21     which the file was last changed (after the working directory
    21     was last changed (after the working directory revision or the
    22     revision or the argument to --rev if given) is printed.
    22     argument to --rev if given) is printed.
    23     """
    23     """
    24     rev = opts.get('rev')
    24     rev = opts.get('rev')
    25     if file_:
    25     if file_:
    26         ctx = repo.filectx(file_, changeid=rev)
    26         ctx = repo.filectx(file_, changeid=rev)
    27     else:
    27     else: