equal
deleted
inserted
replaced
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 revision is |
21 Print the children of the working directory's revisions. If a |
22 given via -r/--rev, the children of that revision will be printed. If a |
22 revision is given via -r/--rev, the children of that revision will |
23 file argument is given, revision in which the file was last changed (after |
23 be printed. If a file argument is given, revision in which the |
24 the working directory revision or the argument to --rev if given) is |
24 file was last changed (after the working directory revision or the |
25 printed. |
25 argument to --rev if given) is 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: |