unknown exception encountered

Issue #398 new
Anonymous created an issue

Hi,

I got this message when I was running this command: hg clone --filemap=filemap svn+http://path_to_svn_repo

The filemap looks like this:

include branches/branch1
include branches/branch2
include branches/branch3
include tags/tag1
include tags/tag2

So there is nothing that shall be included from trunk which might be a little bit strange.

Rgds, Mats - mats.petersson@gemalto.com

 [r13] None: This commit was manufactured by cvs2svn to create tag
2 ** unknown exception encountered, please report by visiting
3 ** http://mercurial.selenic.com/wiki/BugTracker
4 ** Python 2.7.3 (default, Apr 10 2013, 06:20:15) [GCC 4.6.3]
5 ** Mercurial Distributed SCM (version 2.0.2)
6 ** Extensions loaded: largefiles, hgsubversion
7 Traceback (most recent call last):
8 File "/usr/bin/hg", line 38, in <module>
9 mercurial.dispatch.run()
10 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 27, in run
11 sys.exit(dispatch(request(sys.argv[1:])))
12 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 64, in dispatch
13 return _runcatch(req)
14 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 87, in _runcatch
15 return _dispatch(req)
16 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 684, in _dispatch
17 cmdpats, cmdoptions)
18 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 466, in runcommand
19 ret = _runcommand(ui, options, cmd, d)
20 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 738, in _runcommand
21 return checkargs()
22 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 692, in checkargs
23 return cmdfunc()
24 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 681, in <lambda>
25 d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
26 File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 458, in check
27 return func(*args, **kwargs)
28 File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 139, in wrap
29 util.checksignature(origfn), *args, **kwargs)
30 File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 458, in check
31 return func(*args, **kwargs)
32 File "/opt/hgsubversion/hgsubversion/wrappers.py", line 582, in clone
33 orig(ui, source, dest, **opts)
34 File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 458, in check
35 return func(*args, **kwargs)
36 File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 1139, in clone
37 branch=opts.get('branch'))
38 File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 184, in wrap
39 return wrapper(origfn, *args, **kwargs)
40 File "/opt/hgsubversion/hgsubversion/wrappers.py", line 571, in hgclonewrapper
41 data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
42 File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 347, in clone
43 destrepo.clone(srcrepo, heads=revs, stream=stream)
44 File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 2057, in clone
45 return self.pull(remote, heads)
46 File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 81, in wrapper
47 return fn(self, *args, **opts)
48 File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 104, in pull
49 return wrappers.pull(self, remote, heads, force)
50 File "/opt/hgsubversion/hgsubversion/wrappers.py", line 436, in pull
51 firstrun)
52 File "/opt/hgsubversion/hgsubversion/replay.py", line 66, in convert_rev
53 return _convert_rev(ui, meta, svn, r, tbdelta, firstrun)
54 File "/opt/hgsubversion/hgsubversion/replay.py", line 83, in _convert_rev
55 svn.get_replay(r.revnum, editor, meta.revmap.oldest)
56 File "/opt/hgsubversion/hgsubversion/svnwrap/svn_swig_wrapper.py", line 454, in get_replay
57 e_baton, self.pool)
58 File "/usr/lib/python2.7/dist-packages/libsvn/ra.py", line 838, in svn_ra_replay
59 return _ra.svn_ra_replay(*args)
60 File "/opt/hgsubversion/hgsubversion/svnwrap/svn_swig_wrapper.py", line 90, in fun
61 return fn(self, *args, **kwargs)
62 File "/opt/hgsubversion/hgsubversion/editor.py", line 279, in delete_entry
63 ha = self.meta.get_parent_revision(self.current.rev.revnum, branch)
64 File "/opt/hgsubversion/hgsubversion/svnmeta.py", line 433, in get_parent_revision
65 return node.hex(self.revmap[tagged])
66 KeyError: (None, None)
67 Error in sys.excepthook:
68 Traceback (most recent call last):
69 File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
70 from apport.fileutils import likely_packaged, get_recent_crashes
71 File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 95, in _demandimport
72 return _import(name, globals, locals, fromlist, level)
73 File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
74 from apport.report import Report
75 File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 114, in _demandimport
76 mod = _origimport(name, globals, locals)
77 File "/usr/lib/python2.7/dist-packages/apport/report.py", line 155, in <module>
78 class Report(problem_report.ProblemReport):
79 File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 86, in __getattribute__
80 self._load()
81 File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 58, in _load
82 mod = _origimport(head, globals, locals)
83 File "/usr/lib/python2.7/dist-packages/problem_report.py", line 93, in <module>
84 class ProblemReport(UserDict):
85 TypeError: Error when calling the metaclass bases
86 module.__init__() takes at most 2 arguments (3 given)
87
88 Original exception was:
89 Traceback (most recent call last):
90 File "/usr/bin/hg", line 38, in <module>
91 mercurial.dispatch.run()
92 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 27, in run
93 sys.exit(dispatch(request(sys.argv[1:])))
94 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 64, in dispatch
95 return _runcatch(req)
96 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 87, in _runcatch
97 return _dispatch(req)
98 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 684, in _dispatch
99 cmdpats, cmdoptions)
100 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 466, in runcommand
101 ret = _runcommand(ui, options, cmd, d)
102 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 738, in _runcommand
103 return checkargs()
104 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 692, in checkargs
105 return cmdfunc()
106 File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 681, in <lambda>
107 d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
108 File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 458, in check
109 return func(*args, **kwargs)
110 File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 139, in wrap
111 util.checksignature(origfn), *args, **kwargs)
112 File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 458, in check
113 return func(*args, **kwargs)
114 File "/opt/hgsubversion/hgsubversion/wrappers.py", line 582, in clone
115 orig(ui, source, dest, **opts)
116 File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 458, in check
117 return func(*args, **kwargs)
118 File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 1139, in clone
119 branch=opts.get('branch'))
120 File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 184, in wrap
121 return wrapper(origfn, *args, **kwargs)
122 File "/opt/hgsubversion/hgsubversion/wrappers.py", line 571, in hgclonewrapper
123 data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
124 File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 347, in clone
125 destrepo.clone(srcrepo, heads=revs, stream=stream)
126 File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 2057, in clone
127 return self.pull(remote, heads)
128 File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 81, in wrapper
129 return fn(self, *args, **opts)
130 File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 104, in pull
131 return wrappers.pull(self, remote, heads, force)
132 File "/opt/hgsubversion/hgsubversion/wrappers.py", line 436, in pull
133 firstrun)
134 File "/opt/hgsubversion/hgsubversion/replay.py", line 66, in convert_rev
135 return _convert_rev(ui, meta, svn, r, tbdelta, firstrun)
136 File "/opt/hgsubversion/hgsubversion/replay.py", line 83, in _convert_rev
137 svn.get_replay(r.revnum, editor, meta.revmap.oldest)
138 File "/opt/hgsubversion/hgsubversion/svnwrap/svn_swig_wrapper.py", line 454, in get_replay
139 e_baton, self.pool)
140 File "/usr/lib/python2.7/dist-packages/libsvn/ra.py", line 838, in svn_ra_replay
141 return _ra.svn_ra_replay(*args)
142 File "/opt/hgsubversion/hgsubversion/svnwrap/svn_swig_wrapper.py", line 90, in fun
143 return fn(self, *args, **kwargs)
144 File "/opt/hgsubversion/hgsubversion/editor.py", line 279, in delete_entry
145 ha = self.meta.get_parent_revision(self.current.rev.revnum, branch)
146 File "/opt/hgsubversion/hgsubversion/svnmeta.py", line 433, in get_parent_revision
147 return node.hex(self.revmap[tagged])
148 KeyError: (None, None) 

Comments (2)

  1. Log in to comment