hgext3rd/topic/stack.py
changeset 1990 71410fa2c253
parent 1988 9a5d797d25be
child 1991 ba79d23594d6
--- a/hgext3rd/topic/stack.py	Tue Aug 23 21:18:47 2016 +0200
+++ b/hgext3rd/topic/stack.py	Fri Aug 26 12:37:52 2016 +0200
@@ -2,7 +2,6 @@
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
-from mercurial.i18n import _
 from mercurial import (
     destutil,
     error,
@@ -16,10 +15,6 @@
     return _orderrevs(repo, trevs)
 
 def showstack(ui, repo, topic, opts):
-    if not topic:
-        topic = repo.currenttopic
-    if not topic:
-        raise error.Abort(_('no active topic to list'))
     fm = ui.formatter('topicstack', opts)
     prev = None
     entries = []