I have an old Subversion repository with many projects inside it. Each of the project follows the canonical trunk-branches-tags convention for SVN.
I can convert the entire SVN repository to Mercurial using:
$ hg convert /some-path/old-svn-rep
# This creates old-svn-rep-hg
$ cd old-svn-rep-hg
$ hg update
# Can see all the projects as separate directories
If you know SVN, you know that the directory organization inside /some-path/old-svn-rep
is:
$ ls /some-path/old-svn-rep
conf/
db/
hooks/
locks/
format
README.txt
How do I convert a single project inside this SVN repository, say named Foo, into a Mercurial repository?
This obviously does not work:
$ hg convert /some-path/old-svn-rep/Foo
assuming destination Foo-hg
initializing destination Foo-hg repository
/some-path/old-svn-rep/Foo does not look like a Subversion repository
Please assume that the SVN project has changes in the trunk, many branches and tags.