[issue1334] mq: refreshing fails after moving newly-added file
cédric
mercurial-bugs at selenic.com
Fri Oct 10 02:13:37 CDT 2008
New submission from cédric <cedricduval at free.fr>:
Testcase:
hg init foo
cd foo
hg qinit
hg qnew bar
touch b
hg add b
hg qref
hg mv -f b c
hg qref
Gives a traceback. From there any further attempt at qrefreshing yields:
abort: 00changelog.i at 5a4bfdf8d7e3: no node!
First caught with 1.0.1, it gave a traceback quite similar to the one in
http://www.selenic.com/mercurial/bts/issue1240 (marked as resolved with
issue1175)
Then tried with crew's tip (4e0d54fbd34f), which gives a different
traceback:
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 4e0d54fbd34f)
** Extensions loaded: fetch, gpg, graphlog, imerge, inotify, mq, patchbomb,
purge, record, transplant
Traceback (most recent call last):
File "/tmp/install/bin/hg", line 20, in <module>
mercurial.dispatch.run()
File "/tmp/install/lib/python/mercurial/dispatch.py", line 20, in run
sys.exit(dispatch(sys.argv[1:]))
File "/tmp/install/lib/python/mercurial/dispatch.py", line 29, in dispatch
return _runcatch(u, args)
File "/tmp/install/lib/python/mercurial/dispatch.py", line 45, in _runcatch
return _dispatch(ui, args)
File "/tmp/install/lib/python/mercurial/dispatch.py", line 366, in _dispatch
ret = _runcommand(ui, options, cmd, d)
File "/tmp/install/lib/python/mercurial/dispatch.py", line 419, in _runcommand
return checkargs()
File "/tmp/install/lib/python/mercurial/dispatch.py", line 375, in checkargs
return cmdfunc()
File "/tmp/install/lib/python/mercurial/dispatch.py", line 358, in <lambda>
d = lambda: func(ui, repo, *args, **cmdoptions)
File "/tmp/install/lib/python/hgext/mq.py", line 1768, in refresh
ret = q.refresh(repo, pats, msg=message, **opts)
File "/tmp/install/lib/python/hgext/mq.py", line 1173, in refresh
force=1)
File "/tmp/install/lib/python/hgext/mq.py", line 2261, in commit
return super(mqrepo, self).commit(*args, **opts)
File "/tmp/install/lib/python/mercurial/localrepo.py", line 786, in commit
use_dirstate, update_dirstate)
File "/tmp/install/lib/python/mercurial/localrepo.py", line 844, in _commitctx
new[f] = self.filecommit(fctx, m1, m2, linkrev, trp, changed)
File "/tmp/install/lib/python/mercurial/localrepo.py", line 715, in filecommit
self.ui.debug(_(" %s: copy %s:%s\n") % (fn, cf, hex(cr)))
TypeError: b2a_hex() argument 1 must be string or read-only buffer, not None
--
Cédric
----------
messages: 7380
nosy: cedric
priority: bug
status: unread
title: mq: refreshing fails after moving newly-added file
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1334>
____________________________________________________
More information about the Mercurial-devel
mailing list