problems with empty svn repo

Create issue
Issue #246 wontfix
gaddo created an issue

hello,

i have found that cloning an empty svn repo in not working correctly with hgsubversion.

this sequence show the problem:

{{{ #!bash x:~$ cd /tmp x:/tmp$ svnadmin create repo x:/tmp$ svn co file:///tmp/repo svnco Checked out revision 0. x:/tmp$ cd svnco/ x:/tmp/svnco$ ls x:/tmp/svnco$ mkdir sources x:/tmp/svnco$ svn add sources/ A sources x:/tmp/svnco$ svn ci -m "added sources" Adding sources

Committed revision 1. x:/tmp/svnco$ cd .. x:/tmp/$ hg clone file:///tmp/repo/ hgco [r1] gaddo: added sources no changes found updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved x:/tmp$ cd hgco/ x:/tmp/hgco$ hg out comparing with file:///tmp/repo/ no changes found x:/tmp/hgco$ echo ciao > ciao x:/tmp/hgco$ hg add ciao x:/tmp/hgco$ hg ci -m "added ciao" x:/tmp/hgco$ hg out comparing with file:///tmp/repo/ no changes found

}}}

if i put in the svn repo at least one file, this sequence works.

see

{{{ #!sh

x:~$ cd /tmp x:/tmp$ svnadmin create repo2 x:/tmp$ svn co file:///tmp/repo2 svnco2 Checked out revision 0. x:/tmp$ cd svnco2/ x:/tmp/svnco2$ echo dummy > dummy x:/tmp/svnco2$ svn add dummy A dummy x:/tmp/svnco2$ svn ci -m "add dummy" Adding dummy Transmitting file data . Committed revision 1. x:/tmp/svnco2$ cd .. x:/tmp$ hg clone file:///tmp/repo2 hgco2 [r1] gaddo: add dummy pulled 1 revisions updating to branch default 1 files updated, 0 files merged, 0 files removed, 0 files unresolved x:/tmp$ cd hgco2/ x:/tmp/hgco2$ ls dummy x:/tmp/hgco2$ echo ciao > ciao x:/tmp/hgco2$ hg add ciao x:/tmp/hgco2$ hg ci -m "added ciao" x:/tmp/hgco2$ hg out comparing with file:///tmp/repo2 changeset: 1:e9eb58b7c146 tag: tip user: gaddo date: Tue Jan 11 17:59:33 2011 +0100 summary: added ciao

x:/tmp/hgco2$

}}}

:~$ hg --version Mercurial Distributed SCM (version 1.6.4)

Copyright (C) 2005-2010 Matt Mackall mpm@selenic.com and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gaddo@gaddo:~/hgsubversion$ hg id 60948939555d tip

Comments (1)

  1. Augie Fackler repo owner

    There's not really a good way to fix this that I've ever thought of. If you have a proposed fix, feel encouraged to bring it up on the list.

  2. Log in to comment