[issue1605] exception from hg convert of a cvs repository
Jason Harris
mercurial-bugs at selenic.com
Thu Apr 9 09:24:46 CDT 2009
New submission from Jason Harris <jasonh at wolfram.com>:
I was trying to convert just a part of our CVS repository to a Mercurial
repository. I did a fresh checkout of a part of the CVS tree and tried to
execute something along the lines of:
cd Development/sandbox
cvs checkout base/project/subproject
hg convert base/project/subproject
things started processing away and in the output it said it had detected some
CVS 56242 log entries, also it figured out that there were some 9399 changeset
entries
It was then processing down from the 9399th changeset towards the first when it
reached the 4569th changeset and spit out the following exception:
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.2.1)
** Extensions loaded: color, convert, extdiff
Traceback (most recent call last):
File "/usr/local/bin/hg", line 27, in <module>
mercurial.dispatch.run()
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 16, in
run
sys.exit(dispatch(sys.argv[1:]))
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 25, in
dispatch
return _runcatch(u, args)
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 41, in
_runcatch
return _dispatch(ui, args)
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 372, in
_dispatch
return runcommand(lui, repo, cmd, fullargs, ui, options, d)
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 247, in
runcommand
ret = _runcommand(ui, options, cmd, d)
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 417, in
_runcommand
return checkargs()
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 377, in
checkargs
return cmdfunc()
File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 371, in
<lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/Library/Python/2.5/site-packages/mercurial/util.py", line 718, in check
return func(*args, **kwargs)
File "/Library/Python/2.5/site-packages/hgext/convert/__init__.py", line 199,
in convert
return convcmd.convert(ui, src, dest, revmapfile, **opts)
File "/Library/Python/2.5/site-packages/hgext/convert/convcmd.py", line 340,
in convert
c.convert()
File "/Library/Python/2.5/site-packages/hgext/convert/convcmd.py", line 282,
in convert
self.copy(c)
File "/Library/Python/2.5/site-packages/hgext/convert/convcmd.py", line 253,
in copy
newnode = self.dest.putcommit(files, copies, parents, commit, self.source)
File "/Library/Python/2.5/site-packages/hgext/convert/hg.py", line 145, in
putcommit
a = self.repo.commitctx(ctx)
File "/Library/Python/2.5/site-packages/mercurial/localrepo.py", line 847, in
commitctx
update_dirstate=False)
File "/Library/Python/2.5/site-packages/mercurial/localrepo.py", line 892, in
_commitctx
fctx = wctx.filectx(f)
File "/Library/Python/2.5/site-packages/mercurial/context.py", line 776, in
filectx
return self._filectxfn(self._repo, self, path)
File "/Library/Python/2.5/site-packages/hgext/convert/hg.py", line 115, in
getfilectx
data = source.getfile(f, v)
File "/Library/Python/2.5/site-packages/hgext/convert/cvs.py", line 335, in
getfile
data, mode = self._getfile(file, rev)
File "/Library/Python/2.5/site-packages/hgext/convert/cvs.py", line 326, in
_getfile
return (data, "x" in mode and "x" or "")
UnboundLocalError: local variable 'mode' referenced before assignment
Here is the info on my system:
[16:12][jason at alma ~/Development/sandbox] %python --version
Python 2.5.1
[16:12][jason at alma ~/Development/sandbox] %hg --version
Mercurial Distributed SCM (version 1.2.1)
Copyright (C) 2005-2009 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
System Software Overview:
System Version: Mac OS X 10.5.4 (9E17)
Kernel Version: Darwin 9.4.0
Boot Volume: Alma
Boot Mode: Normal
Computer Name: alma
User Name: Jason Harris (jason)
Time since boot: 2 days 9:38
(This is a play around machine which I use for experimentation, which is why its
not fully up to date with 10.5.6.)
----------
messages: 9050
nosy: jasonh
priority: bug
status: unread
title: exception from hg convert of a cvs repository
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1605>
____________________________________________________
More information about the Mercurial-devel
mailing list