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

Update Problem When Using Propset and Delete Simultaneously

From: Ben Cuthbert <bcuthbert_at_ewa-canada.com>
Date: Thu, 13 Mar 2008 16:08:17 -0400

Hi all,

I'm having an issue that I think may be a bug. The issue stems from one
developer performing a propset command on a file (specifically to set the
svn:keywords property), while a second developer deletes that same file from
their local subversion repository. The following scenario describes the
issue in detail:

Developer 1 (D1) checks out revision X: svn checkout SVNREPO
Developer 2 (D2) checks out revision X: svn checkout SVNREPO
D1 issues the following command on file F1: svn propset svn:keywords "Id" F1
D2 issues the following command on file F1: svn delete F1
D1 updates local copy: svn update
D1 commits changes (repository at X+1): svn commit
D2 updates local copy: svn update
D2 receives the following error:

 U F1
svn: In directory '.'
svn: Error processing command 'modify-entry' in '.'
svn: Error getting 'affected time' on 'F1'
svn: Can't stat 'F1': The system cannot find the file specified.

The only way that I have found in order to resolve this is to have D2 check
out a fresh copy of revision X+1, make the delete and then commit the
change.

This is inconsistent with what happens if D1 were to edit F1 instead of
performing a propset on it. The following scenario describes the issue in
detail:

Developer 1 (D1) checks out revision X: svn checkout SVNREPO
Developer 2 (D2) checks out revision X: svn checkout SVNREPO
D1 edits file F1
D2 issues the following command on file F1: svn delete F1
D1 updates local copy: svn update
D1 commits changes (repository at X+1): svn commit
D2 updates local copy: svn update
D2 receives revision X+1
D2 commits changes (repository at X+2): svn commit
Commit succeeds, deleting file F1

svn --version returns the following:

svn, version 1.4.4 (r25188)
   compiled Jun 8 2007, 18:49:42

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

The machines that are running the subversion clients are Microsoft Windows
XP SP2 machines.

Please let me know of any more information that you may need.

Regards,

Ben

-------------------------------
Ben Cuthbert, EWA-Canada Ltd.
55 Metcalfe Street, Suite 1600
Ottawa, Ontario, Canada K1P 6L5

Voice: (613) 230-6067 Ext 1237
Fax: (613) 230-4933

bcuthbert_at_ewa-canada.com
http://www.ewa-canada.com/

PGP (0x4E8083D5) fingerprint:
88A5 B384 AA4B E735 A9C7
6922 361E B2CB 4E80 83D5
-------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-13 21:27:35 CET

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.