Issue859

Title hg convert crashes with svn repo containing file with %
Priority bug Status chatting
Superseder Nosy List courtois, kirr, mpm, pmezard
Assigned To Topics convert, svn

Created on 2007-12-07.10:29:21 by courtois, last changed 2008-06-29.11:37:07 by kirr.

Messages
msg4633 (view) Author: mpm Date: 2007-12-18.21:34:28
making title more specific
msg4479 (view) Author: courtois Date: 2007-12-07.10:29:19
when converting a svn repository with a directory with a "%" character inside
it's name followed by 2 hex characters.

create a subversion repos with a directory named %aa 
convert it with hg:

$ hg convert file:///home/courtois/foobar/  
assuming destination foobar-hg
initializing destination foobar-hg repository
scanning source...
sorting...
converting...
0 ok
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 0.9.5)
Traceback (most recent call last):
  File "/usr/bin/hg", line 14, in ?
    mercurial.dispatch.run()
  File "/var/lib/python-support/python2.4/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/var/lib/python-support/python2.4/mercurial/dispatch.py", line 29, in
dispatch
    return _runcatch(u, args)
  File "/var/lib/python-support/python2.4/mercurial/dispatch.py", line 45, in
_runcatch
    return _dispatch(ui, args)
  File "/var/lib/python-support/python2.4/mercurial/dispatch.py", line 348, in
_dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/var/lib/python-support/python2.4/mercurial/dispatch.py", line 401, in
_runcommand
    return checkargs()
  File "/var/lib/python-support/python2.4/mercurial/dispatch.py", line 357, in
checkargs
    return cmdfunc()
  File "/var/lib/python-support/python2.4/mercurial/dispatch.py", line 342, in
<lambda>
    d = lambda: func(ui, *args, **cmdoptions)
  File "/var/lib/python-support/python2.4/hgext/convert/__init__.py", line 380,
in convert
    c.convert()
  File "/var/lib/python-support/python2.4/hgext/convert/__init__.py", line 270,
in convert
    self.copy(c)
  File "/var/lib/python-support/python2.4/hgext/convert/__init__.py", line 214,
in copy
    changes = self.source.getchanges(rev)
  File "/var/lib/python-support/python2.4/hgext/convert/subversion.py", line
226, in getchanges
    files, copies = self.expandpaths(rev, paths, parents)
  File "/var/lib/python-support/python2.4/hgext/convert/subversion.py", line
490, in expandpaths
    children = self._find_children(path, revnum)
  File "/var/lib/python-support/python2.4/hgext/convert/subversion.py", line
666, in _find_children
    return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev(revnum),
True, self.ctx, pool).keys()]
  File "/var/lib/python-support/python2.4/libsvn/client.py", line 1043, in
svn_client_ls
    return apply(_client.svn_client_ls, args)
libsvn._core.SubversionException: ("URL 'file:///home/courtois/foobar/%aa'
non-existent in that revision", 160013)
History
Date User Action Args
2008-06-29 11:37:07kirrsetnosy: + kirr
2008-02-11 13:00:34djcsettopic: + convert, svn
nosy: + pmezard
2007-12-18 21:34:28mpmsetstatus: unread -> chatting
nosy: + mpm
messages: + msg4633
title: hg convert crashes with svn repo -> hg convert crashes with svn repo containing file with %
2007-12-07 10:29:21courtoiscreate