--- a/hgext3rd/topic/__init__.py Tue Jun 27 15:21:38 2017 +0200
+++ b/hgext3rd/topic/__init__.py Wed Jun 28 01:58:09 2017 +0200
@@ -129,7 +129,7 @@
topic = repo.currenttopic
if not topic:
raise error.Abort(_('cannot resolve "%s": no active topic') % name)
- revs = list(stack.getstack(repo, topic))
+ revs = list(stack.getstack(repo, topic=topic))
try:
r = revs[idx - 1]
except IndexError:
@@ -312,7 +312,7 @@
topic = repo.currenttopic
if not topic:
raise error.Abort(_('no active topic to list'))
- return stack.showstack(ui, repo, topic, opts)
+ return stack.showstack(ui, repo, topic=topic, opts=opts)
def _changecurrenttopic(repo, newtopic):
"""changes the current topic."""
@@ -420,7 +420,7 @@
fm.data(active=active)
if ui.verbose:
# XXX we should include the data even when not verbose
- data = stack.stackdata(repo, topic)
+ data = stack.stackdata(repo, topic=topic)
fm.plain(' (')
fm.write('branches+', 'on branch: %s',
'+'.join(data['branches']), # XXX use list directly after 4.0 is released