comparison hgext3rd/topic/__init__.py @ 2868:e46b68547017

topic: make --clear + topicname invalid The two flags are mutually exclusive.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 28 Aug 2017 17:35:44 +0200
parents 5c0b6af37b21
children b629874ccaac
comparison
equal deleted inserted replaced
2867:5c0b6af37b21 2868:e46b68547017
343 current = opts.get('current') 343 current = opts.get('current')
344 if current and topic: 344 if current and topic:
345 raise error.Abort(_("cannot use --current when setting a topic")) 345 raise error.Abort(_("cannot use --current when setting a topic"))
346 if current and clear: 346 if current and clear:
347 raise error.Abort(_("cannot use --current and --clear")) 347 raise error.Abort(_("cannot use --current and --clear"))
348 if clear and topic:
349 raise error.Abort(_("cannot use --clear when setting a topic"))
348 350
349 if list: 351 if list:
350 if clear or rev: 352 if clear or rev:
351 raise error.Abort(_("cannot use --clear or --rev with --list")) 353 raise error.Abort(_("cannot use --clear or --rev with --list"))
352 if not topic: 354 if not topic: