diff -r ea5553e47027 -r 62d5d4206840 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Fri Apr 01 16:58:52 2016 -0700 +++ b/hgext3rd/topic/__init__.py Sun Apr 03 21:41:38 2016 -0700 @@ -69,7 +69,7 @@ raise error.Abort(_('cannot resolve "%s": no active topic') % name) revs = list(stack.getstack(repo, topic)) try: - r = revs[idx] + r = revs[idx - 1] except IndexError: msg = _('cannot resolve "%s": topic "%s" has only %d changesets') raise error.Abort(msg % (name, topic, len(revs)))