[issue1151] mq: renaming a patch result in an error on commit (1.0.1)

Sylvain Pasche mercurial-bugs at selenic.com
Sun Jun 1 16:37:00 CDT 2008


New submission from Sylvain Pasche <sylvain.pasche at gmail.com>:

Steps to reproduce:
mkdir myproject
cd myproject
hg init
hg qinit -c
hg qnew foo
hg qrename foo bar
hg -R .hg/patches ci -m "renamed"

This last command give me:

  File ".../EGG-INFO/scripts/hg", line 20, in <module>
    mercurial.dispatch.run()
  File ".../mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File ".../mercurial/dispatch.py", line 29, in dispatch
    return _runcatch(u, args)
  File ".../mercurial/dispatch.py", line 45, in _runcatch
    return _dispatch(ui, args)
  File ".../mercurial/dispatch.py", line 364, in _dispatch
    ret = _runcommand(ui, options, cmd, d)
  File ".../mercurial/dispatch.py", line 417, in _runcommand
    return checkargs()
  File ".../mercurial/dispatch.py", line 373, in checkargs
    return cmdfunc()
  File ".../mercurial/dispatch.py", line 356, in <lambda>
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File ".../mercurial/commands.py", line 557, in commit
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
  File ".../mercurial/cmdutil.py", line 1179, in commit
    return commitfunc(ui, repo, files, message, match, opts)
  File ".../mercurial/commands.py", line 555, in commitfunc
    force_editor=opts.get('force_editor'))
  File ".../hgext/mq.py", line 2189, in commit
    return super(mqrepo, self).commit(*args, **opts)
  File ".../mercurial/localrepo.py", line 832, in commit
    new[f] = self.filecommit(f, m1, m2, linkrev, trp, changed)
  File ".../mercurial/localrepo.py", line 712, in filecommit
    meta["copyrev"] = hex(manifest1[cp])
KeyError: 'foo'

----------
messages: 6133
nosy: sylvain
priority: bug
status: unread
title: mq: renaming a patch result in an error on commit (1.0.1)

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1151>
____________________________________________________



More information about the Mercurial-devel mailing list