hgext3rd/topic/__init__.py
branchstable
changeset 3097 f06c86fd2ffd
parent 3096 c458c0856ee5
child 3124 6ef274e01f64
equal deleted inserted replaced
3096:c458c0856ee5 3097:f06c86fd2ffd
  1002         hint = _("see 'hg help -e topic.topic-mode' for details")
  1002         hint = _("see 'hg help -e topic.topic-mode' for details")
  1003         if opts.get('topic'):
  1003         if opts.get('topic'):
  1004             t = opts['topic']
  1004             t = opts['topic']
  1005             with repo.vfs.open('topic', 'w') as f:
  1005             with repo.vfs.open('topic', 'w') as f:
  1006                 f.write(t)
  1006                 f.write(t)
       
  1007         elif opts.get('amend'):
       
  1008             pass
  1007         elif notopic and mayabort:
  1009         elif notopic and mayabort:
  1008             msg = _("no active topic")
  1010             msg = _("no active topic")
  1009             raise error.Abort(msg, hint=hint)
  1011             raise error.Abort(msg, hint=hint)
  1010         elif notopic and maywarn:
  1012         elif notopic and maywarn:
  1011             ui.warn(_("warning: new draft commit without topic\n"))
  1013             ui.warn(_("warning: new draft commit without topic\n"))