hgext3rd/topic/__init__.py
changeset 1958 62d5d4206840
parent 1952 665d6322994e
child 1963 7b7f073ed05e
--- 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)))