I just started using subversion, had some minor problems getting it built
and installed, and I think it's working now. But I'm confused about some
details of svn import, export, and the trunk. I'll describe that at the
end of the message, but first I'll explain what I've done so far. My
appologies if this is too wordy.
I just set up Subversion on a server and a client machine both running Red
Hat 9. I didn't want to upgrade the stock Apache 2.0.40, mainly due to
the huge cascade of other stuff I'd also have to upgrade. So on the
client machine, which does not have Apache installed, I unpacked the
tarball of 0.26.0, configured it with --enable-all-static, and built it.
The links failed due to the lack of "-lpthread" in the link options, so I
manually added that to the LIBS variable in the Makefile. (I saw that
some people have claimed that doing a second configure fixes this, but it
didn't for me.)
I tried to do an "svnadmin create" using the resulting binary, and got
errors from db4 (Red Hat db4-4.0.14-20) about an unimplemented function. I
thought 4.0.14 was supported? I downloaded db-4.1.25.tar.gz and
patch.4.1.25.1 from Sleepycat, unpacked it in the subversion directory and
patched it, did a make clean, a fresh configure, and built it again. This
time I was able to do an "svnadmin create" successfully.
I copied the svn, svnadmin, svndumpfilter, svnlook, svnserve, and
svnversion binaries to /usr/local/bin on the server, created a user for
subversion, and set up xinetd and sshd appropriately. I created a
/home/svn directory as a parent for my repositories, and within that
directory did an "svnadmin create tsbutils" to set up a repository for my
tsbutils project.
On the client, from the directory above my tsbutils source directory, I
tried to import my code based on an example in the book:
svn import svn+ssh://svn.example.com/tsbutils/ tsbutils
This resulted in an error. Apparently the book is incorrect, or
the syntax has changed since it was written, and the URL comes after the
local path rather than before. I tried:
svn import tsbutils svn+ssh://svn.example.com/tsbutils/
and it seemed to work OK.
Next I wanted to check out the code from Subversion into a new
directory. Based on the examples in the book, I tried:
svn checkout svn+ssh://svn.example.com/tsbutils/trunk tsbutils
but this gave the error:
svn: Bad URL passed to RA layer
svn: Source URL doesn't exist: svn+ssh://svn.brouhaha.com/tsbutils/trunk.
After some experimentation, I found that:
svn checkout svn+ssh://svn.example.com/tsbutils tsbutils
did in fact check out my sources as expected.
So my question is, why didn't it work with /trunk at the end? Was I
supposed to do something to manually create trunk? Or was I supposed to
import to .../tsbutils/trunk/?
Thanks,
Eric Smith
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 2 03:46:38 2003