896 with repo.vfs.open('topic', 'w') as f: |
896 with repo.vfs.open('topic', 'w') as f: |
897 f.write(t) |
897 f.write(t) |
898 elif not repo.currenttopic and topicmode == "enforce": |
898 elif not repo.currenttopic and topicmode == "enforce": |
899 msg = _("no active topic") |
899 msg = _("no active topic") |
900 hint = _("set a current topic or use '--config " + |
900 hint = _("set a current topic or use '--config " + |
901 "experimental.enforce-topic=no' to commit without a topic") |
901 "experimental.topic-mode=off' to commit without a topic") |
902 raise error.Abort(msg, hint=hint) |
902 raise error.Abort(msg, hint=hint) |
903 return orig(ui, repo, *args, **opts) |
903 return orig(ui, repo, *args, **opts) |
904 |
904 |
905 def committextwrap(orig, repo, ctx, subs, extramsg): |
905 def committextwrap(orig, repo, ctx, subs, extramsg): |
906 ret = orig(repo, ctx, subs, extramsg) |
906 ret = orig(repo, ctx, subs, extramsg) |