[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

how to add the svn -add -R now?

From: solo turn <soloturn99_at_yahoo.com>
Date: 2002-08-20 18:43:49 CEST

we use the -R option currently to do a repository syncronisation. so
it is important to have it operating on the whole wc tree without
exiting on "exists" warnings.

how do i add this correctly now to libsvn_client/add.c? when i add it
the following way (as i did before):

  /* Add this directory to revision control. */
  err = svn_wc_add (dirname, adm_access,
                       NULL, SVN_INVALID_REVNUM,
                       notify_added, notify_baton, pool);

  if (err) {
    if (err->apr_err != SVN_ERR_ENTRY_EXISTS) {
      /* ignore "exists" errors, but nothing else */
      return err;
    }
    /* reset err */
    svn_error_clear_all (err);
  }

  SVN_ERR (svn_wc_adm_retrieve (&dir_access, adm_access, dirname,
pool));

i get an error:
$ svn add -R *
svn: Working copy not locked
svn: directory not locked (first_dir_hit)

how could we prevent this error happening? where does it think
something should be locked?

in general:
may i suggest:
   --> "file exists" is a WARNING
   --> a warning in general dos NOT cause a program exit

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 20 18:44:26 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.