** unknown exception encountered, details follow
Patrick Waugh
ptwaugh at gmail.com
Sat Oct 11 13:30:54 CDT 2008
Seems I came across a minor problem.
patrick at berrysoft:~/www/shop-dev$ hg --version
Mercurial Distributed SCM (version d1c82127573e)
Basically, I wanted to rename a directory and so issued this command:
hg mv admin secure_admin
and there was a problem with the very last file it attempted to move:
moving admin/images/icons/folder.gif to secure_admin/images/icons/folder.gif
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version d1c82127573e)
** Extensions loaded: alias, hgk, mq
Traceback (most recent call last):
File "/usr/local/bin/hg", line 20, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 20, in run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 29, in dispatch
return _runcatch(u, args)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 45, in _runcatch
return _dispatch(ui, args)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 366, in _dispatch
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 419, in _runcommand
return checkargs()
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 375, in checkargs
return cmdfunc()
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 358, in <lambda>
d = lambda: func(ui, repo, *args, **cmdoptions)
File "/usr/local/lib/python2.5/site-packages/mercurial/commands.py",
line 2254, in rename
return cmdutil.copy(ui, repo, pats, opts, rename=True)
File "/usr/local/lib/python2.5/site-packages/mercurial/cmdutil.py",
line 510, in copy
if copyfile(abssrc, relsrc, targetpath(abssrc), exact):
File "/usr/local/lib/python2.5/site-packages/mercurial/cmdutil.py",
line 412, in copyfile
repo.remove([abssrc], not after)
File "/usr/local/lib/python2.5/site-packages/mercurial/localrepo.py",
line 1089, in remove
self.dirstate.remove(f)
File "/usr/local/lib/python2.5/site-packages/mercurial/dirstate.py",
line 323, in remove
self._droppath(f)
File "/usr/local/lib/python2.5/site-packages/mercurial/dirstate.py",
line 247, in _droppath
if dirs[base] == 1:
KeyError: 'admin/images'
To get around this, I'll probably just move the directory and use the
--after option.
Patrick
More information about the Mercurial
mailing list