hgext3rd/topic/__init__.py
changeset 2664 ed6fb5f20b24
parent 2662 9c0b293c2785
child 2665 0ade6e87346b
equal deleted inserted replaced
2663:c01dc624b358 2664:ed6fb5f20b24
   284             topic = None
   284             topic = None
   285         elif not topic:
   285         elif not topic:
   286             raise error.Abort('changing topic requires a topic name or --clear')
   286             raise error.Abort('changing topic requires a topic name or --clear')
   287         if any(not c.mutable() for c in repo.set('%r and public()', rev)):
   287         if any(not c.mutable() for c in repo.set('%r and public()', rev)):
   288             raise error.Abort("can't change topic of a public change")
   288             raise error.Abort("can't change topic of a public change")
   289         _changetopics(ui, repo, rev, topic)
   289         return _changetopics(ui, repo, rev, topic)
       
   290 
   290     if clear:
   291     if clear:
   291         return _changecurrenttopic(repo, None)
   292         return _changecurrenttopic(repo, None)
   292 
   293 
   293     if topic:
   294     if topic:
   294         return _changecurrenttopic(repo, topic)
   295         return _changecurrenttopic(repo, topic)