hgext: convert of git repo fails
dhruva
dhruvakm at gmail.com
Tue Jul 15 06:52:02 UTC 2008
Hi,
hg convert from git to hg repo fails. Running it through the
debugger, I get the following trace.
-> exceptions.append(inst)
c:\python\lib\site-packages\hgext\convert\git.py(35)__init__()
-> checktool('git-rev-parse', 'git')
> c:\python\lib\site-packages\hgext\convert\common.py(27)checktool()
-> raise exc(_('cannot find required "%s" tool') % name)
(Pdb) l
22
23 def checktool(exe, name=None, abort=True):
24 name = name or exe
25 if not util.find_exe(exe):
26 exc = abort and util.Abort or MissingTool
27 -> raise exc(_('cannot find required "%s" tool') % name)
28
29 class NoRepo(Exception): pass
30
31 SKIPREV = 'SKIP'
32
(Pdb) p exe
'git-rev-parse'
The latest GIT has some changes in the way it is installed. Only the
'git' executable need to be in the path. All other commands are
treated as sub commands of 'git'. It is the responsibility of 'git' to
find the location of the sub commands in the installed folder. So, we
could call all sub commands through 'git' (do not check for
git-rev-parse and other sub commands) as 'git rev-parse' and leave it
to 'git' to find 'git-rev-parse' executable.
-dhruva
--
Contents reflect my personal views only!
More information about the Mercurial-devel
mailing list