Mercurial > public > mercurial-scm > hg-stable
diff hgext/mq.py @ 14635:217b7d83afc3
cmdutil, logmessage: use ui.fin when reading from '-'
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 08 Jun 2011 14:54:52 +0300 |
parents | 2b9c32929e62 |
children | b98063487a6f |
line wrap: on
line diff
--- a/hgext/mq.py Wed Jun 15 17:04:06 2011 -0300 +++ b/hgext/mq.py Wed Jun 08 14:54:52 2011 +0300 @@ -2211,7 +2211,7 @@ Returns 0 on successful creation of a new patch. """ - msg = cmdutil.logmessage(opts) + msg = cmdutil.logmessage(ui, opts) def getmsg(): return ui.edit(msg, opts.get('user') or ui.username()) q = repo.mq @@ -2262,7 +2262,7 @@ Returns 0 on success. """ q = repo.mq - message = cmdutil.logmessage(opts) + message = cmdutil.logmessage(ui, opts) if opts.get('edit'): if not q.applied: ui.write(_("no patches applied\n")) @@ -2332,7 +2332,7 @@ raise util.Abort(_('no patches applied')) q.checklocalchanges(repo) - message = cmdutil.logmessage(opts) + message = cmdutil.logmessage(ui, opts) if opts.get('edit'): if message: raise util.Abort(_('option "-e" incompatible with "-m" or "-l"')) @@ -2661,7 +2661,7 @@ This command is deprecated, use :hg:`rebase` instead.""" q = repo.mq - message = cmdutil.logmessage(opts) + message = cmdutil.logmessage(ui, opts) ret = q.save(repo, msg=message) if ret: return ret