`svnadmin create` on an existing set of source files

Jeffrey Walton <[email protected]>
Newsgroups gmane.comp.version-control.subversion.user
Message-ID <CAH8yC8np3xadW8qnCfhkaFsM2Rwa3k01etbCz-AjOWB7McqPWQ@mail.gmail.com>
Hi Everyone,

I have my source files in /var/test-svn. The test-svn directory has
*.h and *.c files. I am trying to create a repo from them.

As root, I perform the following:

    # cd /var
    # svnadmin create --fs-type fsfs test-svn
    svnadmin: E200011: Repository creation failed
    svnadmin: E200011: Could not create top-level directory
    svnadmin: E200011: 'test-svn' exists and is non-empty

I think I am missing something from my reading, like at
<https://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.html#svn.ref.svnadmin.c>
and <https://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.create.html>.
My apologies for my rusty knowledge of subversion. I've been stuck in
the git world for far too long.

So the question is, how do I create a repo from an existing set of
project files?

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.