Empty repository after subversion -> mercurial conversion

后端 未结 1 1642
旧巷少年郎
旧巷少年郎 2021-01-03 19:47

I\'ve used the \'hg convert\' command to try to move my SVN repository to hg, and it seems to work (takes a while and prints out all the commit messages as it goes), but at

1条回答
  •  借酒劲吻你
    2021-01-03 20:27

    You need to run hg update to get a working copy.

    (Such mercurial repositories without a working copy can be used as pure communication points where revisions are pushed to or pulled from, much like a subversion server. In this case it was created by hg convert, but you can also create such repositories with hg clone --noupdate or hg update null. Omitting the working copy files saves some space.)

    Also, I would recommend you convert each project separately. If you give the URL for "project1", hg convert will automatically detect the trunk, branches and tags subfolders and will do the right thing.

    In mercurial, branches are first-class concepts rather than just folders who happen to have been svn-copied from the trunk. The branches don't live in any user-visible location like in svn. Having multiple projects (each with their own branches) in a single mercurial repository doesn't really make sense.

    0 讨论(0)
提交回复
热议问题