Extension to edit commit messages of multiple mq patches
Erik Zielke
ez at aragost.com
Wed Feb 9 09:39:02 UTC 2011
On 08-02-2011 17:02, Stephen Rasku wrote:
> On Mon, Jan 3, 2011 at 02:52, Erik Zielke <ez at aragost.com
> <mailto:ez at aragost.com>> wrote:
>
> Hi all.
>
> I have made a small extension that enables users to edit commit
> messages for all applied mq patches just by editing one file, i.e.
> parsing the file, popping the patches, and pushing them again one
> by one and refreshing them with the new commit messages.
>
> The extension is hosted at https://bitbucket.org/erikz/editcommitmsgs
>
> Comments and suggestions for improving this extension are very
> welcome.
>
>
> I got a traceback when I tried to use it:
>
> $ *hg qedi*
> ** unknown exception encountered, details follow
> ** report bug details to http://mercurial.selenic.com/bts/
> ** or mercurial at selenic.com <mailto:mercurial at selenic.com>
> ** Mercurial Distributed SCM (version 1.3.1)
> ** Extensions loaded: convert, extdiff, rebase, color, transplant,
> graphlog, mq, editcommitmsgs, bookmarks, hgk, pager
> Traceback (most recent call last):
> File "/usr/bin/hg", line 27, in ?
> mercurial.dispatch.run()
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 16, in run
> sys.exit(dispatch(sys.argv[1:]))
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 27, in dispatch
> return _runcatch(u, args)
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 43, in _runcatch
> return _dispatch(ui, args)
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 449, in _dispatch
> return runcommand(lui, repo, cmd, fullargs, ui, options, d)
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 317, in runcommand
> ret = _runcommand(ui, options, cmd, d)
> File "/usr/lib64/python2.4/site-packages/mercurial/extensions.py",
> line 115, in wrap
> return wrapper(origfn, *args, **kwargs)
> File "/usr/lib64/python2.4/site-packages/hgext/pager.py", line 62,
> in pagecmd
> return orig(ui, options, cmd, cmdfunc)
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 501, in _runcommand
> return checkargs()
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 454, in checkargs
> return cmdfunc()
> File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
> line 448, in <lambda>
> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
> File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line
> 402, in check
> return func(*args, **kwargs)
> File "/home/srasku/Code/editcommitmsgs/editcommitmsgs.py", line 58,
> in editcommitmsgs
> savecommitcomments(ui, repo, mq, appliedbefore, commitmessages)
> File "/home/srasku/Code/editcommitmsgs/editcommitmsgs.py", line 131,
> in savecommitcomments
> mq.pop(ui, repo, all=True)
> File "/usr/lib64/python2.4/site-packages/hgext/mq.py", line 2128, in pop
> if opts['name']:
> KeyError: 'name'
>
> $ *hg version*
> Mercurial Distributed SCM (version 1.3.1)
>
> Copyright (C) 2005-2009 Matt Mackall <mpm at selenic.com
> <mailto:mpm at selenic.com>> and others
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> Let me know if you need any more information.
>
> ...Stephen
Thank you for the feedback. I will look at it as soon as I get time. I
have only tested it with newer versions of Mercurial, and I see that you
run with an older version of Mercurial.
--
Erik Zielke
aragost Trifork ag
Professional Mercurial Support
http://www.aragost.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110209/69ff3524/attachment.html>
More information about the Mercurial
mailing list