hgext3rd/topic/__init__.py
changeset 2995 dbc896a7a1c3
parent 2994 1e8ac0fcd6b7
child 2999 d94a4e150633
--- a/hgext3rd/topic/__init__.py	Mon Sep 25 03:29:45 2017 +0530
+++ b/hgext3rd/topic/__init__.py	Mon Sep 25 03:30:56 2017 +0530
@@ -423,6 +423,7 @@
     list = opts.get('list')
     rev = opts.get('rev')
     current = opts.get('current')
+    age = opts.get('age')
 
     if current and topic:
         raise error.Abort(_("cannot use --current when setting a topic"))
@@ -430,6 +431,8 @@
         raise error.Abort(_("cannot use --current and --clear"))
     if clear and topic:
         raise error.Abort(_("cannot use --clear when setting a topic"))
+    if age and topic:
+        raise error.Abort(_("cannot use --age while setting a topic"))
 
     touchedrevs = set()
     if rev: