hgext3rd/topic/__init__.py
changeset 3021 5f4c42d4f2e8
parent 3020 361d83261d7a
child 3022 255e66783505
equal deleted inserted replaced
3020:361d83261d7a 3021:5f4c42d4f2e8
   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)