Convert from SVN with trunk="", but with tags?
Patrick Mézard
pmezard at gmail.com
Thu Jun 19 01:26:48 CDT 2008
Hans Meine a écrit :
> Hi,
>
> today I wanted to convert an SVN repo from sourceforge:
> https://spacenav.svn.sourceforge.net/svnroot/spacenav/trunk
>
> However, just using "hg convert ..." would give me only 10 revisions, the
> first of which having the commit log "added trunk to the repository". I read
> in the fine Wiki (ConvertExtension) that "convert retrieves all revisions
> down to the first one created in trunk" which may not be all revisions, and I
> could confirm via ViewVC that there are indeed 46 revisions, and that the
> main subprojects have lately been moved into a /trunk dir:
> http://spacenav.svn.sourceforge.net/viewvc/spacenav/
>
> Consequently, I tried
>
> SRC_URI=https://spacenav.svn.sourceforge.net/svnroot/spacenav
> hg convert --config convert.svn.trunk= $SRC_URI
>
> This pulled (more or less all?) 46 revisions, but also a /tags subdirectory.
> Is it possible to prevent/change this, i.e. I want to have all revisions (and
> am thus prepared to deal with an explicit trunk directory), but I want the
> copies in the tags subdirectory to be converted to hg tags nevertheless?
Try with the same URL, but without the "--config convert.svn.trunk=" argument.
--
Patrick Mézard
More information about the Mercurial
mailing list