You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by John <js...@ecclescollege.ac.uk> on 2005/07/23 21:10:51 UTC

svn source question

This isn't really a dev list question, I'm just trying to figure out where svn
checks if an item already exists in the repository.

Starting with making dirs, I got as far as svn_fs_make_dir() in
libsvn_fs\fs_loader.c, but that led to a function pointer (I assume that's
polymorphism for bdb / fsfs?). So that led me to svn_fs_fs__dag_make_dir(),
which ends up calls make_entry() in dag.c.

The trail gets cold there - and I'm having trouble building the code to trace it.

Directions would be appreciated!! Where does it say, "Bang - this directory
already exists!!"

Thanks,

John


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn source question

Posted by Christopher Ness <ch...@nesser.org>.
On Sat, 2005-07-23 at 21:10 +0000, John wrote:
> The trail gets cold there - and I'm having trouble building the code to trace it.

Be sure to add the --enable-maintainer-mode flag to your ./configure
command so it will return files and line numbers on errors.  ;)

> Directions would be appreciated!! Where does it say, "Bang - this directory
> already exists!!"

I tried to make a directory that already existed in a working copy.
This are the errors that I received - there are two.

[nesscg@heidrun asc]$
~/sandbox/subversion/subversion/clients/cmdline/svn mkdir trunk
subversion/clients/cmdline/mkdir-cmd.c:83: (apr_err=17)
svn: Try 'svn add' or 'svn add --non-recursive' instead?
subversion/libsvn_subr/io.c:2460: (apr_err=17)
svn: Can't create directory 'trunk': File exists

HTHs you find the info you seek,
Chris
-- 
PGP Public Key: http://www.nesser.org/pgp-key/
14:04:18 up 4:22, 2 users, load average: 0.63, 0.45, 0.23