Issue1151

Title mq: renaming a patch result in an error on commit (1.0.1)
Priority bug Status resolved
Superseder KeyError for copy in commit
View: 1175
Nosy List mpm, sylvain
Assigned To Topics

Created on 2008-06-01.21:37:00 by sylvain, last changed 2008-07-25.21:08:42 by pmezard.

Messages
msg6560 (view) Author: mpm Date: 2008-07-23.17:00:35
Duplicate of issue1175, closing
msg6133 (view) Author: sylvain Date: 2008-06-01.21:36:58
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'
History
Date User Action Args
2008-07-25 21:08:42pmezardsetstatus: chatting -> resolved
nosy: mpm, sylvain
2008-07-23 17:00:35mpmsetstatus: unread -> chatting
superseder: + KeyError for copy in commit
messages: + msg6560
nosy: + mpm
2008-06-01 21:37:00sylvaincreate