Issue823

Title 'hg convert' on a Subversion with branches directory renamed
Priority bug Status resolved
Superseder Nosy List abenea, bos, djc, mpm, pmezard, ser, vadiml
Assigned To Topics

Created on 2007-11-05.00:51:50 by ser, last changed 2008-03-10.07:41:23 by djc.

Files
File name Uploaded Type Edit Remove
rexml.tgz ser, 2007-11-06.02:20:18 application/x-tgz
Messages
msg5520 (view) Author: djc Date: 2008-03-10.07:41:23
The fix for the original problem is in main, resolving.
msg5198 (view) Author: pmezard Date: 2008-02-12.07:29:30
Killed problem moved in issue948
msg4999 (view) Author: vadiml Date: 2008-01-28.07:54:03
It was killed all by itself, no extennal intervention
msg4998 (view) Author: pmezard Date: 2008-01-28.07:17:10
> 2029 * (clean) Replaced external 3rdparty with its content
> Killed

Killed by what and why ?
msg4997 (view) Author: ser Date: 2008-01-28.04:09:48
It works fine on REXML's repo.  It'll take me a while to verify that the 
history is correct, but on the surface, it looks good.

Thanks again!
msg4996 (view) Author: vadiml Date: 2008-01-28.02:38:20
I've tried the conversion on openwengo using hg-crew version and following command:
hg convert
file://localhost/home/vadim/.svk/local/openwengo.svkmirror/wengophone-ng/
openwengo.hgmirror/wengophone-ng

It procesed 2/3 of the repo and the failed

2032 * (clean) Replaced external owbuild with its content
2031 * (clean) Replaced external wifo with its content
2030 * (clean) Removed svn:externals property
2029 * (clean) Replaced external 3rdparty with its content
Killed
msg4994 (view) Author: ser Date: 2008-01-27.21:54:48
Yes, I'll do a conversion and let you know how it goes.  It may take me a week 
or so to get around to this.

Thanks for the fix!
msg4989 (view) Author: pmezard Date: 2008-01-26.13:59:56
Should be fixed in crew at 59dce24933ad

Tested with the rexml repository (thanks ser !). The conversion is successful
and a couple of random checkouts are equals to the svn source ones. ser, maybe
you can take a look and tell me if the conversion makes sense.


Also tested with http://dev.openwengo.com/svn/openwengo/wengophone-ng/. The
graph discovery part went well, conversion was stopped for it was really too slow.
msg4630 (view) Author: mpm Date: 2007-12-18.21:29:03
Making title more specific
msg4317 (view) Author: ser Date: 2007-11-11.13:27:41
That makes a lot of sense.  The rename must have been a side-effect of pulling 
the project out of a BerkeleyDB repository with a bunch of other projects into 
its own FSFS repository.  Revisions 1120-1123 are all similar.

Well, I can't expect 'hg convert' to deal with an edge case like this.  It 
would appear that my only options are to either baseline the HG repository off 
r1124, or stick with SVN for the moment.

Thanks for looking into this.
msg4316 (view) Author: abenea Date: 2007-11-11.10:36:25
Sorry, i just noticed that /rexml/branches was renamed to /branches in r1120, 
so svn does the right thing. The problem is that hg convert can't deal with the 
branches directory being renamed.
msg4315 (view) Author: abenea Date: 2007-11-11.08:39:21
svn acts weird on the attached repository (probably a bug):


andrei@viggy ~ $ svn log file:///home/andrei/tmp/rexml/ -r 1082 -v --limit 1
------------------------------------------------------------------------
r1082 | ser | 2005-03-13 14:17:15 +0200 (Sun, 13 Mar 2005) | 2 lines
Changed paths:
   M /rexml/branches/xpath_V/src/rexml/xpath_parser.rb

The final cut

------------------------------------------------------------------------
andrei@viggy ~ $ ls /home/andrei/tmp/rexml
README.txt  conf  dav  db  format  hooks  locks


As you can see it prints an extra "/rexml" in the paths. The same (wrong?) path 
is reported by the svn bindings (snv.ra.get_log), but 'svn ls' behaviour is 
different:


andrei@viggy ~ $ svn ls file:///home/andrei/tmp/rexml
branches/
ruby/
shelves/
tags/
trunk/
msg4277 (view) Author: ser1 Date: 2007-11-06.02:25:11
On Monday 05 November 2007, Bryan O'Sullivan wrote:
> Can you make a copy of the SVN repo available?  Otherwise there's nothing
> we can do.

Attached a tarball of the repository to the issue.
msg4276 (view) Author: ser Date: 2007-11-06.02:20:18
Tarball of the repository attached.
msg4271 (view) Author: bos Date: 2007-11-05.15:07:27
Can you make a copy of the SVN repo available?  Otherwise there's nothing we can do.
msg4269 (view) Author: ser Date: 2007-11-05.00:57:30
Incidentally, this doesn't look like it has anything to do with issue 771.
msg4267 (view) Author: ser Date: 2007-11-05.00:51:45
This is from mercurial-stable-snapshot downloaded Nov 4, 2007, Subversion 
version version 1.4.3 (r23084), on Kubuntu Feisty.  While trying to convert a 
Subversion repository, hg crashes, and recommends that I submit a bug report.

ser@bean:~$ hg convert file:///home/ser/rexml-svn rexml-hg
initializing destination rexml-hg repository
scanning source...
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial@selenic.com
** Mercurial Distributed SCM (version unknown)
Traceback (most recent call last):
  File "/usr/bin/hg", line 14, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 20, in 
run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 29, in 
dispatch
    return _runcatch(u, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 45, in 
_runcatch
    return _dispatch(ui, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 348, in 
_dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 401, in 
_runcommand
    return checkargs()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 357, in 
checkargs
    return cmdfunc()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 342, in 
<lambda>
    d = lambda: func(ui, *args, **cmdoptions)
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 380, 
in convert
    c.convert()
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 257, 
in convert
    parents = self.walktree(heads)
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 97, 
in walktree
    commit = self.cachecommit(n)
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 204, 
in cachecommit
    commit = self.source.getcommit(rev)
  File "/usr/lib/python2.5/site-packages/hgext/convert/subversion.py", line 
245, in getcommit
    self._fetch_revisions(from_revnum=revnum, to_revnum=stop)
  File "/usr/lib/python2.5/site-packages/hgext/convert/subversion.py", line 
620, in _fetch_revisions
    for entry in self.get_log([self.module], from_revnum, to_revnum):
  File "/usr/lib/python2.5/site-packages/hgext/convert/subversion.py", line 
275, in get_log
    for p in parent(stdout):
  File "/usr/lib/python2.5/site-packages/hgext/convert/subversion.py", line 
262, in parent
    raise SubversionException("child raised exception", entry)
libsvn._core.SubversionException: ('child raised exception', 160013)
History
Date User Action Args
2008-03-10 07:41:23djcsetstatus: testing -> resolved
nosy: + djc
messages: + msg5520
2008-02-12 07:29:31pmezardsetnosy: mpm, bos, pmezard, ser, abenea, vadiml
messages: + msg5198
2008-01-28 07:54:03vadimlsetnosy: mpm, bos, pmezard, ser, abenea, vadiml
messages: + msg4999
2008-01-28 07:17:12pmezardsetnosy: mpm, bos, pmezard, ser, abenea, vadiml
messages: + msg4998
2008-01-28 04:09:49sersetnosy: mpm, bos, pmezard, ser, abenea, vadiml
messages: + msg4997
2008-01-28 02:38:20vadimlsetnosy: + vadiml
messages: + msg4996
2008-01-27 21:54:48sersetnosy: mpm, bos, pmezard, ser, abenea
messages: + msg4994
2008-01-26 13:59:56pmezardsetstatus: chatting -> testing
nosy: + pmezard
messages: + msg4989
2007-12-18 21:29:04mpmsetnosy: + mpm
messages: + msg4630
title: 'hg convert' on a Subversion repository crashes hg -> 'hg convert' on a Subversion with branches directory renamed
2007-11-11 13:29:02sersetnosy: - ser1
2007-11-11 13:27:42sersetnosy: bos, ser, ser1, abenea
messages: + msg4317
2007-11-11 10:36:26abeneasetnosy: bos, ser, ser1, abenea
messages: + msg4316
2007-11-11 08:39:22abeneasetnosy: + abenea
messages: + msg4315
2007-11-06 02:25:12ser1setnosy: + ser1
messages: + msg4277
2007-11-06 02:20:18sersetfiles: + rexml.tgz
nosy: bos, ser
messages: + msg4276
2007-11-05 15:07:28bossetnosy: + bos
messages: + msg4271
2007-11-05 00:57:30sersetmessages: + msg4269
2007-11-05 00:57:09sersetmessages: - msg4268
2007-11-05 00:56:49sersetstatus: unread -> chatting
messages: + msg4268
2007-11-05 00:51:51sercreate