# HG changeset patch # User Pierre-Yves David # Date 1508528593 -7200 # Node ID c458c0856ee534037ea0963c292d4e15d0ad6cc6 # Parent 7a5941d91fc01434fbf0a598621fc3d2b8937496 topic-mode: add missing end line in topic-mode warning diff -r 7a5941d91fc0 -r c458c0856ee5 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Fri Oct 20 20:58:35 2017 +0200 +++ b/hgext3rd/topic/__init__.py Fri Oct 20 21:43:13 2017 +0200 @@ -1010,7 +1010,7 @@ elif notopic and maywarn: ui.warn(_("warning: new draft commit without topic\n")) if not ui.quiet: - ui.warn(("(%s)") % hint) + ui.warn(("(%s)\n") % hint) elif notopic and mayrandom: with repo.vfs.open('topic', 'w') as f: f.write(randomname.randomtopicname(ui)) diff -r 7a5941d91fc0 -r c458c0856ee5 tests/test-topic-mode.t --- a/tests/test-topic-mode.t Fri Oct 20 20:58:35 2017 +0200 +++ b/tests/test-topic-mode.t Fri Oct 20 21:43:13 2017 +0200 @@ -52,13 +52,13 @@ $ hg add a $ hg ci -m "Added a" warning: new draft commit without topic - (see 'hg help -e topic.topic-mode' for details) (no-eol) + (see 'hg help -e topic.topic-mode' for details) (same test, checking we abort before the editor) $ EDITOR=cat hg ci --amend -m "Added a" --edit warning: new draft commit without topic - (see 'hg help -e topic.topic-mode' for details) (no-eol) + (see 'hg help -e topic.topic-mode' for details) $ hg ci --amend -m "added a'" --config experimental.topic-mode=ignore $ hg log changeset: 2:2e862d8b5eff @@ -103,7 +103,7 @@ (branch merge, don't forget to commit) $ hg commit -m "merge mytopic" warning: new draft commit without topic - (see 'hg help -e topic.topic-mode' for details) (no-eol) + (see 'hg help -e topic.topic-mode' for details) $ hg log -G @ changeset: 3:676a445d1c09