318 ] + commands.formatteropts, |
318 ] + commands.formatteropts, |
319 _('hg topics [TOPIC]')) |
319 _('hg topics [TOPIC]')) |
320 def topics(ui, repo, topic=None, clear=False, rev=None, list=False, **opts): |
320 def topics(ui, repo, topic=None, clear=False, rev=None, list=False, **opts): |
321 """View current topic, set current topic, change topic for a set of revisions, or see all topics. |
321 """View current topic, set current topic, change topic for a set of revisions, or see all topics. |
322 |
322 |
323 Clear topic on existing topiced revisions: |
323 Clear topic on existing topiced revisions:: |
324 `hg topic --rev <related revset> --clear` |
324 |
325 |
325 hg topic --rev <related revset> --clear |
326 Change topic on some revisions: |
326 |
327 `hg topic <newtopicname> --rev <related revset>` |
327 Change topic on some revisions:: |
328 |
328 |
329 Clear current topic: |
329 hg topic <newtopicname> --rev <related revset> |
330 `hg topic --clear` |
330 |
331 |
331 Clear current topic:: |
332 Set current topic: |
332 |
333 `hg topic <topicname>` |
333 hg topic --clear |
334 |
334 |
335 List of topics: |
335 Set current topic:: |
336 `hg topics` |
336 |
337 |
337 hg topic <topicname> |
338 List of topics with their last touched time sorted according to it: |
338 |
339 `hg topic --age` |
339 List of topics:: |
|
340 |
|
341 hg topics |
|
342 |
|
343 List of topics with their last touched time sorted according to it:: |
|
344 |
|
345 hg topic --age |
340 |
346 |
341 The active topic (if any) will be prepended with a "*". |
347 The active topic (if any) will be prepended with a "*". |
342 |
348 |
343 The `--current` flag helps to take active topic into account. For |
349 The `--current` flag helps to take active topic into account. For |
344 example, if you want to set the topic on all the draft changesets to the |
350 example, if you want to set the topic on all the draft changesets to the |