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

Problem upgrading working copy depth

From: Alexander Sinyushkin <Alexander.Sinyushkin_at_svnkit.com>
Date: 2007-09-19 18:15:24 CEST

Hi devs,

While playing with depth_tests-15 I noticed a strange thing: if I try to
invoke the command 'svn up --depth files' within the root of a working
copy that has been checked out with --depth = empty I get the expected
depth after all (files). But If I just go somewhere else (for example
one or more levels upper) and invoke 'svn up --depth files
/path/to/wc_root' (providing an absolute path) the depth does not change
(it is still 'empty'), although I do receive files during update.

I think it is this place in update_editor.c in function
complete_directory(...) which is not accurate:

  /* After a depth upgrade the entry must reflect the new depth.
     Upgrading to infinity changes the depth of *all* directories,
     upgrading to something else only changes the target. */
  if (eb->depth == svn_depth_infinity
      || (strcmp(path, eb->target) == 0 && eb->depth > entry->depth))
    entry->depth = eb->depth;

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 19 18:16:07 2007

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