Issue1554

Title convert svn fails with SvnPathNotFound exception
Priority bug Status chatting
Superseder Nosy List anovstrup, grin, pmezard
Assigned To pmezard Topics convert, svn

Created on 2009-03-13.19:11:19 by anovstrup, last changed 2010-01-25.10:45:36 by grin.

Messages
msg11511 (view) Author: grin Date: 2010-01-25.10:45:36
hg -v convert http://linuxgenius.googlecode.com/svn/trunk/nonexisting foo

...or any nonexisting path at your pleasure. :-)
msg11510 (view) Author: pmezard Date: 2010-01-25.10:11:16
@grin: do you think you can give me a way to reproduce it?
msg11508 (view) Author: grin Date: 2010-01-25.07:40:57
Same result here, and it's not that I cannot convert it (I have no worries
till we have 'tailor') but it's ugly to have an unhandled exception thrown
into our face. Just æsthetics. :-)
msg9054 (view) Author: anovstrup Date: 2009-04-09.16:21:41
Nope, same error.  I also get this error if I omit the filemap.  I wonder if 
the problem has to do with the unusual structure of the repository:

PAT
|---subproj1
|   |---trunk
|   |---branches
|   |---tags
|
|---subproj2
|   |---trunk
|   |---branches
|   |---tags
|
...

My filemap is just mapping subprojX/trunk to subprojX and removing the branches 
(since they're trivial) and tags (since we don't need 'em).
msg9045 (view) Author: pmezard Date: 2009-04-09.11:40:31
What about:

 $ hg convert --filemap filemap svn://seafs/PAT 

(no trailing slash) ?
msg8811 (view) Author: anovstrup Date: 2009-03-13.19:11:13
anovstrup@gnuchinatown:~$ hg convert --filemap filemap svn://seafs/PAT/ 
assuming destination PAT-hg
initializing destination PAT-hg repository
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.1.2)
** Extensions loaded: convert, mq
Traceback (most recent call last):
  File "/usr/bin/hg", line 20, in <module>
    mercurial.dispatch.run()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 20, in 
run
    sys.exit(dispatch(sys.argv[1:]))
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 29, in 
dispatch
    return _runcatch(u, args)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 45, in 
_runcatch
    return _dispatch(ui, args)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 367, in 
_dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 416, in 
_runcommand
    return checkargs()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 376, in 
checkargs
    return cmdfunc()
  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 361, in 
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/var/lib/python-support/python2.5/mercurial/util.py", line 715, in check
    return func(*args, **kwargs)
  File "/var/lib/python-support/python2.5/hgext/convert/__init__.py", line 181, 
in convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/var/lib/python-support/python2.5/hgext/convert/convcmd.py", line 320, 
in convert
    opts.get('rev'))
  File "/var/lib/python-support/python2.5/hgext/convert/convcmd.py", line 52, 
in convertsource
    return source(ui, path, rev)
  File "/var/lib/python-support/python2.5/hgext/convert/subversion.py", line 
225, in __init__
    self.head = self.latest(self.module, latest)
  File "/var/lib/python-support/python2.5/hgext/convert/subversion.py", line 
499, in latest
    raise SvnPathNotFound(_('%s not found up to revision %d') % (path, stop))
hgext.convert.subversion.SvnPathNotFound:  not found up to revision 356
History
Date User Action Args
2010-01-25 10:45:36grinsetnosy: pmezard, anovstrup, grin
messages: + msg11511
2010-01-25 10:11:16pmezardsettopic: + convert, svn
nosy: pmezard, anovstrup, grin
messages: + msg11510
2010-01-25 07:40:57grinsetnosy: + grin
messages: + msg11508
2009-04-09 16:21:43anovstrupsetnosy: pmezard, anovstrup
messages: + msg9054
2009-04-09 11:40:32pmezardsetstatus: unread -> chatting
assignedto: pmezard
messages: + msg9045
nosy: + pmezard
2009-03-13 19:11:19anovstrupcreate