Issue1227

Title qrefresh fails on chained renames
Priority bug Status resolved
Superseder KeyError for copy in commit
View: 1175
Nosy List RonnyPfannschmidt, mpm
Assigned To Topics

Created on 2008-07-17.00:41:36 by RonnyPfannschmidt, last changed 2008-08-02.20:24:59 by pmezard.

Files
File name Uploaded Type Edit Remove
pida-borked.tbz2 RonnyPfannschmidt, 2008-07-17.00:41:35 application/x-bzip-compressed-tar
Messages
msg6561 (view) Author: mpm Date: 2008-07-23.17:01:10
Duplicate of issue1175, closing
msg6530 (view) Author: mpm Date: 2008-07-18.22:05:30
Workaround: hg debugrebuildstate tip

Downgrading to bug.
msg6522 (view) Author: RonnyPfannschmidt Date: 2008-07-17.00:44:44
it actually broke the repo after failing
msg6521 (view) Author: RonnyPfannschmidt Date: 2008-07-17.00:41:35
i use Mercurial Distributed SCM (version 2011bb8ada9a)

my basic actions where:

move some files; qrefresh; move those again; qrefresh again;

it got me

Traceback (most recent call last):
  File "/home/ronny/Projects/mercurial/hg", line 20, in <module>
    mercurial.dispatch.run()
  File "/home/ronny/Projects/mercurial/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/home/ronny/Projects/mercurial/mercurial/dispatch.py", line 29, in dispatch
    return _runcatch(u, args)
  File "/home/ronny/Projects/mercurial/mercurial/dispatch.py", line 45, in _runcatch
    return _dispatch(ui, args)
  File "/home/ronny/Projects/mercurial/mercurial/dispatch.py", line 364, in
_dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/home/ronny/Projects/mercurial/mercurial/dispatch.py", line 417, in
_runcommand
    return checkargs()
  File "/home/ronny/Projects/mercurial/mercurial/dispatch.py", line 373, in
checkargs
    return cmdfunc()
  File "/home/ronny/Projects/mercurial/mercurial/dispatch.py", line 356, in <lambda>
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/home/ronny/Projects/mercurial/hgext/mq.py", line 1768, in refresh
    ret = q.refresh(repo, pats, msg=message, **opts)
  File "/home/ronny/Projects/mercurial/hgext/mq.py", line 1173, in refresh
    force=1)
  File "/home/ronny/Projects/mercurial/hgext/mq.py", line 2260, in commit
    return super(mqrepo, self).commit(*args, **opts)
  File "/home/ronny/Projects/mercurial/mercurial/localrepo.py", line 793, in commit
    use_dirstate, update_dirstate)
  File "/home/ronny/Projects/mercurial/mercurial/localrepo.py", line 851, in
_commitctx
    new[f] = self.filecommit(fctx, m1, m2, linkrev, trp, changed)
  File "/home/ronny/Projects/mercurial/mercurial/localrepo.py", line 717, in
filecommit
    meta["copyrev"] = hex(manifest1[cp])
KeyError: 'pida/editors/vim/vimcom.py'
History
Date User Action Args
2008-08-02 20:24:59pmezardsetstatus: chatting -> resolved
nosy: mpm, RonnyPfannschmidt
2008-07-23 17:01:10mpmsetsuperseder: + KeyError for copy in commit
messages: + msg6561
nosy: mpm, RonnyPfannschmidt
2008-07-18 22:05:30mpmsetpriority: critical -> bug
nosy: + mpm
messages: + msg6530
2008-07-17 00:44:44RonnyPfannschmidtsetstatus: unread -> chatting
messages: + msg6522
2008-07-17 00:41:36RonnyPfannschmidtcreate