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

[PATCH] Issue #2188 - [API] svn_client_copy/move should error out if target exists

From: S.Ramaswamy <ramaswamy_at_collab.net>
Date: 2005-05-13 16:45:26 CEST

Introduced a parameter 'dir_override' in the new API calls
svn_client_copy2() and svn_client_move3() to allow directory creation
to be toggled. Need a better name than 'dir_override'. The cmd line
client still calls the older API, since this change is mainly meant
for non-cmd line clients. Should the cmd line also be making calls to
the new functions ?

Thanks
Ramaswamy

Changelog:

Fix issue #2188. Make API change to make directory creation optional
when copying and moving directories.

* subversion/include/svn_client.h
    (svn_client_copy) : Marked the function as deprecated.

    (svn_client_copy2) : New. Added function prototype and doc string.

    (svn_client_move3) : New. Added function prototype and doc string.

    (svn_client_move2) : Marked the function as deprecated.

* subversion/libsvn_client/copy.c
    (svn_client_copy) : Modified to call 'setup_copy()' with the
      'dir_override' set to TRUE. The command line clients calling
      this function will still create a new directory inside the
      target directory with a name that is the basename of the source
      directory.

    (svn_client_copy2) : New Function. Same as 'svn_client_copy()',
      but with an additional parameter 'dir_override' that allows
      directory creation behaviour to be toggled.

    (svn_client_move, svn_client_move2) : Modified to call
      'setup_copy()' with the 'dir_override' set to TRUE. The command
       line clients calling this function will still create a new
       directory inside the target directory with a name that is the
       basename of the source directory

    (svn_client_move3) : New Function. Same as 'svn_client_move2()',
      but with an additional parameter 'dir_override' that allows
      directory creation behaviour to be toggled.

    (wc_to_wc_copy, wc_to_repos_copy, repos_to_repos_copy,
     repos_to_wc_copy) :
      Added an extra 'dir_override' parameter. If 'dir_override' is
      set to FALSE, an error is returned if the destination directory
      exists.'dir_override' set to TRUE results in a directory
      getting created in the destination directory.

    (setup_copy) : Added an extra 'dir_override' parameter.

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

Received on Fri May 13 17:46:59 2005

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.