comparison hgext3rd/topic/__init__.py @ 2994:1e8ac0fcd6b7

topics: spell out topics completely in help
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 25 Sep 2017 03:29:45 +0530
parents 725b660d9886
children dbc896a7a1c3
comparison
equal deleted inserted replaced
2993:725b660d9886 2994:1e8ac0fcd6b7
385 def topics(ui, repo, topic=None, **opts): 385 def topics(ui, repo, topic=None, **opts):
386 """View current topic, set current topic, change topic for a set of revisions, or see all topics. 386 """View current topic, set current topic, change topic for a set of revisions, or see all topics.
387 387
388 Clear topic on existing topiced revisions:: 388 Clear topic on existing topiced revisions::
389 389
390 hg topic --rev <related revset> --clear 390 hg topics --rev <related revset> --clear
391 391
392 Change topic on some revisions:: 392 Change topic on some revisions::
393 393
394 hg topic <newtopicname> --rev <related revset> 394 hg topics <newtopicname> --rev <related revset>
395 395
396 Clear current topic:: 396 Clear current topic::
397 397
398 hg topic --clear 398 hg topics --clear
399 399
400 Set current topic:: 400 Set current topic::
401 401
402 hg topic <topicname> 402 hg topics <topicname>
403 403
404 List of topics:: 404 List of topics::
405 405
406 hg topics 406 hg topics
407 407
408 List of topics sorted according to their last touched time displaying last 408 List of topics sorted according to their last touched time displaying last
409 touched time and the user who last touched the topic:: 409 touched time and the user who last touched the topic::
410 410
411 hg topic --age 411 hg topics --age
412 412
413 The active topic (if any) will be prepended with a "*". 413 The active topic (if any) will be prepended with a "*".
414 414
415 The `--current` flag helps to take active topic into account. For 415 The `--current` flag helps to take active topic into account. For
416 example, if you want to set the topic on all the draft changesets to the 416 example, if you want to set the topic on all the draft changesets to the
417 active topic, you can do: 417 active topic, you can do:
418 `hg topic -r "draft()" --current` 418 `hg topics -r "draft()" --current`
419 419
420 The --verbose version of this command display various information on the state of each topic.""" 420 The --verbose version of this command display various information on the state of each topic."""
421 421
422 clear = opts.get('clear') 422 clear = opts.get('clear')
423 list = opts.get('list') 423 list = opts.get('list')