[issue1817] hg convert (cvs) new-born file has disappeared
Christoph Junghans
mercurial-bugs at selenic.com
Mon Aug 31 14:52:15 UTC 2009
New submission from Christoph Junghans <kleiner_otti at gmx.de>:
I used "hg convert some_freshly_checkout_cvs_repo" and got the following
error. External cvsps leads to same problem. Suggestions?
cvs server: cvs checkout: warning: new-born `Espresso/doc/text/random.doc'
has disappeared
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.3.1)
** Extensions loaded: mq, gpg, hgk, acl, purge, fetch, transplant,
cvscommit, convert, rebase
Traceback (most recent call last):
File "/people/thnfs/homes/junghans/opt/bin/hg", line 27, in <module>
mercurial.dispatch.run()
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 16, in run
sys.exit(dispatch(sys.argv[1:]))
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 27, in dispatch
return _runcatch(u, args)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 43, in _runcatch
return _dispatch(ui, args)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 449, in _dispatch
return runcommand(lui, repo, cmd, fullargs, ui, options, d)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 317, in runcommand
ret = _runcommand(ui, options, cmd, d)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 501, in _runcommand
return checkargs()
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 454, in checkargs
return cmdfunc()
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/dispatch.py",
line 448, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/util.py",
line 402, in check
return func(*args, **kwargs)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/__init__.py",
line 232, in convert
return convcmd.convert(ui, src, dest, revmapfile, **opts)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/convcmd.py",
line 395, in convert
c.convert(sortmode)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/convcmd.py",
line 329, in convert
self.copy(c)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/convcmd.py",
line 301, in copy
self.source, self.map)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/hg.py",
line 164, in putcommit
self.repo.commitctx(ctx)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/localrepo.py",
line 929, in commitctx
fctx = ctx[f]
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/context.py",
line 762, in __getitem__
return self.filectx(key)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/mercurial/context.py",
line 787, in filectx
return self._filectxfn(self._repo, self, path)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/hg.py",
line 132, in getfilectx
data = source.getfile(f, v)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/cvs.py",
line 350, in getfile
data, mode = self._getfile(file, rev)
File
"/people/thnfs/homes/junghans/opt/lib64/python2.5/site-packages/hgext/convert/cvs.py",
line 340, in _getfile
return (data, "x" in mode and "x" or "")
UnboundLocalError: local variable 'mode' referenced before assignment
----------
messages: 10437
nosy: junghans
priority: bug
status: unread
title: hg convert (cvs) new-born file has disappeared
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1817>
____________________________________________________
More information about the Mercurial-devel
mailing list