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

RE: encouraging users to switch

From: John Kristian <John.Kristian_at_Siebel.com>
Date: 2005-02-06 20:02:11 CET

True, update won't delete a user's current working directory.
So `svn update .` doesn't do any harm.

But most users in my community use GUIs like TortoiseSVN, which will
delete a directory whose branch has moved. So will `svn update
<subdirectory>`; for example:

$ ls d1
d0 d1 d2 f0 f1 f2

$ svn move -m "move d1" %REPO%/d1 %REPO%/b2/d1

Committed revision 19345.

$ cd d1
$ svn update .
svn: REPORT request failed on '/svn/etc./!svn/vcc/default'
svn:
Cannot replace a directory from within

$ cd ..
$ svn update d1
D d1
Updated to revision 19345.

$ ls d1
ls: d1: No such file or directory

-----Original Message-----
From: Bryan Donlan [mailto:bdonlan@bd.beginyourfear.com]
Sent: Friday, February 04, 2005 7:07 PM
To: John Kristian
Cc: users@subversion.tigris.org
Subject: Re: encouraging users to switch

John Kristian wrote:
> Can you recommend a way to encourage users to execute `svn switch`
> after a branch is moved?
>
> I plan to move a branch that has many working copies, which were
> checked out by many users. I'll tell the users to run `svn switch`,
> but I expect some stragglers will neglect to do so. If they run `svn
> update`, their working copies will be deleted (because I deleted the
old branch).
> This will be annoying: it will cost them time to delete their working
> copies and then re-create new ones (after switching). Most will be
> startled to see the deletions, and some will waste time and energy
> figuring out that they need to switch. (But it won't do any lasting
> harm that I can think of.)

This doesn't seem to be a problem:

$ svn info
Path: .
URL: file:///home/bdonlan/svntest/testrepo/branch
Repository UUID: bef702d5-54ef-0310-a8c6-8f58bf3a6737
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: bdonlan
Last Changed Rev: 1
Last Changed Date: 2005-02-04 22:03:18 -0500 (Fri, 04 Feb 2005)

$ svn ls file:///home/bdonlan/svntest/testrepo
branch/
$ svn rm file:///home/bdonlan/svntest/testrepo/branch -m ''

Committed revision 2.
$ svn up
svn: Cannot replace a directory from within $ cd ..
$ svn up testwc
svn: Cannot replace a directory from within
$-

------------------------------------------------------------------------------
Siebel CRM OnDemand. Proven Results for Any Size Company. www.crmondemand.com

This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.
====================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 6 20:04:39 2005

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

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