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

Re: Calling update from the command line with /nonrecursive option deletes files

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 27 Apr 2011 19:21:46 +0200

On 27.04.2011 18:47, Ted Elliott wrote:
> When you use the /nonrecursive flag along with /command:update from
> the command line for TortoiseProc it deletes everything under the
> path.
>
> Recreate Steps: 1. Checkout a directory from the repo that has some
> files at the root and some subdirectories, or use a working copy that
> you don't mind losing files in. 2. Run this from the command line
> replacing<working copy path> with a correct path: tortoiseproc.exe
> /command:update /path:<working copy path> /nonrecursive
>
> Expected behavior: It only updates the files in the root directory
> and does not update anything in any subfolders
>
> Actual behavior: It deletes all the files in the path specified.
>
> Version Info: TortoiseSVN 1.6.15, Build 21042 - 64 Bit

That's by design. With the 'nonrecursive' flag you specify that the
update is done with depth "empty". And in 1.6.x the update depth is
'sticky' by default. That means the update depth is kept/stored and
therefore the files are not necessary/wanted anymore.
Version 1.7 has a new command line option /stickydepth to set this
sticky flag explicitly, but in 1.6 the depth is always sticky.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2725223
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-27 19:22:00 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

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