--- a/hgext/mq.py Sun Feb 11 17:19:07 2018 +0530 +++ b/hgext/mq.py Sun Feb 11 17:25:53 2018 +0530 @@ -1185,7 +1185,7 @@ except error.Abort: pass i += 1 - name = '%s__%s' % (namebase, i) + name = '%s__%d' % (namebase, i) return name def checkkeepchanges(self, keepchanges, force):