comparison hgext3rd/topic/__init__.py @ 3096:c458c0856ee5 stable

topic-mode: add missing end line in topic-mode warning
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 20 Oct 2017 21:43:13 +0200
parents 7a5941d91fc0
children f06c86fd2ffd
comparison
equal deleted inserted replaced
3095:7a5941d91fc0 3096:c458c0856ee5
1008 msg = _("no active topic") 1008 msg = _("no active topic")
1009 raise error.Abort(msg, hint=hint) 1009 raise error.Abort(msg, hint=hint)
1010 elif notopic and maywarn: 1010 elif notopic and maywarn:
1011 ui.warn(_("warning: new draft commit without topic\n")) 1011 ui.warn(_("warning: new draft commit without topic\n"))
1012 if not ui.quiet: 1012 if not ui.quiet:
1013 ui.warn(("(%s)") % hint) 1013 ui.warn(("(%s)\n") % hint)
1014 elif notopic and mayrandom: 1014 elif notopic and mayrandom:
1015 with repo.vfs.open('topic', 'w') as f: 1015 with repo.vfs.open('topic', 'w') as f:
1016 f.write(randomname.randomtopicname(ui)) 1016 f.write(randomname.randomtopicname(ui))
1017 return orig(ui, repo, *args, **opts) 1017 return orig(ui, repo, *args, **opts)
1018 1018