[issue768] Cannot convert a particular git rpeo

James Mills mercurial-bugs at selenic.com
Sun Oct 7 07:46:50 CDT 2007


New submission from James Mills <prologic at shortcircuit.net.au>:

Hi all,

Trying to convert one of my git repos:

~/var/hg
$ hg-convert-repo ~/var/cwd/local/public/crux
assuming destination /home/prologic/var/cwd/local/public/crux-hg
destination /home/prologic/var/cwd/local/public/crux-hg is a Mercurial 
repository
scanning source...
sorting...
converting...
1612 
Traceback (most recent call last):
  File "/home/prologic/bin/hg-convert-repo", line 25, in <module>
    convert._convert(u, *args, **opts)
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 310, 
in _convert
    c.convert()
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 217, 
in convert
    self.copy(c)
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 194, 
in copy
    newnode = self.dest.putcommit(f, r, c)
  File "/usr/lib/python2.5/site-packages/hgext/convert/hg.py", line 63, in 
putcommit
    hg.bin(p1), hg.bin(p2), extra=extra)
  File "/usr/lib/python2.5/site-packages/mercurial/localrepo.py", line 621, in 
rawcommit
    p1=p1, p2=p2, wlock=wlock, extra=extra)
  File "/usr/lib/python2.5/site-packages/mercurial/localrepo.py", line 780, in 
commit
    self.hook("commit", node=hex(n), parent1=xp1, parent2=xp2)
  File "/usr/lib/python2.5/site-packages/mercurial/localrepo.py", line 108, in 
hook
    return hook.hook(self.ui, self, name, throw, **args)
  File "/usr/lib/python2.5/site-packages/mercurial/hook.py", line 94, in hook
    r = _exthook(ui, repo, hname, cmd, args, throw) or r
  File "/usr/lib/python2.5/site-packages/mercurial/hook.py", line 74, in 
_exthook
    r = util.system(cmd, environ=env, cwd=repo.root)
  File "/usr/lib/python2.5/site-packages/mercurial/util.py", line 580, in system
    os.environ['HG'] = _hgexecutable
  File "/usr/lib/python2.5/os.py", line 476, in __setitem__
    putenv(key, item)
TypeError: putenv() argument 2 must be string, not None

Not relaly sure why this is
happenning, as most of my other git
repos converted just fine.

cheers
James

----------
messages: 4086
nosy: prologic
priority: bug
status: unread
title: Cannot convert a particular git rpeo

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue768>
____________________________________________________



More information about the Mercurial-devel mailing list