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

[PATCH] Move multiple targets

From: Hyrum K. Wright <hyrum_wright_at_byu.edu>
Date: 2005-11-07 17:18:31 CET

This patch modifies the move subcommand to accept more than two
arguments, similar to the unix mv command. If there are only two
arguments, the command continues the current behavior. If there are
more than two, it checks to see if the last one is a directory, and if
it is, moves the preceding targets into it.

Right now, this change lives in the client, but would it be better to
have the multiple move logic live somewhere lower down the stack, such
as the wc layer?


   Allow move to accept more than two targets. If there are two,
   proceed as normal. If there are more than two, check that the last
   one is a directory and then move the proceeding targets into it.

   * subversion/clients/cmdline/move-cmd.c
     (svn_cl__move): Check for more than two targets, and perform the
     correct move for the situation.

   * subversion/clients/cmdline/main.c
     (svn_cl__cmd_table): Add documentation for multiple move target

Received on Mon Nov 7 17:20:59 2005

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