--- a/hgext3rd/topic/__init__.py Mon Sep 03 16:29:02 2018 +0200
+++ b/hgext3rd/topic/__init__.py Mon Sep 03 16:41:32 2018 +0200
@@ -288,7 +288,10 @@
try:
r = revs[idx]
except IndexError:
- msg = _('cannot resolve "%s": %s "%s" has only %d changesets')
+ if ttype == 'topic':
+ msg = _('cannot resolve "%s": %s "%s" has only %d changesets')
+ elif ttype == 'branch':
+ msg = _('cannot resolve "%s": %s "%s" has only %d non-public changesets')
raise error.Abort(msg % (name, ttype, tname, len(revs) - 1))
# b0 or t0 can be None
if r == -1 and idx == 0: