[issue3052] 'hg convert' for SVN repo failed if path was deleted in SVN history.

Oleksandr Gavenko bugs at mercurial.selenic.com
Mon Oct 17 03:09:59 CDT 2011


New submission from Oleksandr Gavenko <gavenkoa at gmail.com>:

If delete path in SVN repo then Mercurial can not access it.

This test script show what happen (note that with http:// protocol I got
same error):

  #!/bin/sh

  set -x

  svnadmin create svn-repo
  svn co file://$PWD/svn-repo svn-working
  cd svn-working/
  mkdir proj
  touch LICENCE
  touch proj/README
  svn add proj/ LICENCE
  svn ci -m 111 .
  echo xxx>>proj/README
  svn ci -m 222 .
  svn up
  svn rm proj
  svn ci -m 333

  cd ..
  hg convert file://$PWD/svn-repo/proj hg-repo
  hg convert --source-type=Subversion file://$PWD/svn-repo/proj hg-repo

When I run it I got (abort: no revision found in module):

  + svnadmin create svn-repo
  + svn co file:///cygdrive/d/home/tmp/my2/svn-repo svn-working
  Checked out revision 0.
  + cd svn-working/
  + mkdir proj
  + touch LICENCE
  + touch proj/README
  + svn add proj/ LICENCE
  A         proj
  A         proj/README
  A         LICENCE
  + svn ci -m 111 .
  Adding         LICENCE
  Adding         proj
  Adding         proj/README
  Transmitting file data ..
  Committed revision 1.
  + echo xxx
  + svn ci -m 222 .
  Sending        proj/README
  Transmitting file data .
  Committed revision 2.
  + svn up
  At revision 2.
  + svn rm proj
  D         proj/README
  D         proj
  + svn ci -m 333
  Deleting       proj

  Committed revision 3.
  + cd ..
  + hg convert file:///cygdrive/d/home/tmp/my2/svn-repo/proj hg-repo
  initializing destination hg-repo repository
  abort: no revision found in module /proj
  + hg convert --source-type=svn
file:///cygdrive/d/home/tmp/my2/svn-repo/proj hg-repo
  initializing destination hg-repo repository
  abort: no revision found in module /proj

----------
messages: 17658
nosy: gavenkoa
priority: bug
status: unread
title: 'hg convert' for SVN repo failed if path was deleted in SVN history.

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


More information about the Mercurial-devel mailing list