Mercurial from Subversion: move, rename and labels

I have a subversion repo with the following location:

svnrepo/projectA/trunk
svnrepo/projectA/tags
svnrepo/projectA/branches
svnrepo/projectB/trunk
svnrepo/projectB/tags
svnrepo/projectB/branches


which I would like to move to a mercury repo with a revised layout:
hgrepo / Projecta
hgrepo / projectB

What is the best way to do this? Some of my thoughts:

Option1

Reorder paths in subversion (using svn move) in an intermediate format:

svnrepo/trunk/projectA
svnrepo/trunk/projectB
svnrepo/tags/projectA
svnrepo/tags/projectB
svnrepo/branches/projectA
svnrepo/branches/projectB

then hg convert to svnrepo / trunk. Will this confuse hg imports?

Option 2 hg convert each of the projects / trunks into separate hg repositories. Then merge them into one hg repo (using hg init, hg pull -f projectA, etc.). I think this will lose the branch names and tags in the first imported project.

+2
2

Mercurial - ,

  • . , , , .
  • - Mercurial, , . .

, Subversion Mercurial. .

+6

Hg ( ).

, , Subversion ( , , ), (D) VCS, (.. , ), , ( SVN).

, SVN- Hg - "trunk", "tags" "branch".

hgsubversion, SVN (, "" /projectA ") Hg, A. SVN orignal Hg.
:

hgpullsvn URL- SVN (, URL- SVN svn://server/myproj/branches/feature-ZZZ, hgpullsvn feature-ZZZ)


"", "", tonfa hgsubversion, " - ":

. , , Mercurial / Subversion.

hgsvn hgpushsvn hgpullsvn... hgsvn.

+4

Source: https://habr.com/ru/post/1732936/


All Articles