You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Cuthbert <bc...@ewa-canada.com> on 2008/03/13 20:08:17 UTC

Update Problem When Using Propset and Delete Simultaneously

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@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Update Problem When Using Propset and Delete Simultaneously

Posted by Erik Huelsmann <eh...@gmail.com>.
On Fri, Mar 21, 2008 at 2:43 PM, Erik Huelsmann <eh...@gmail.com> wrote:
> On Thu, Mar 13, 2008 at 9:08 PM, Ben Cuthbert <bc...@ewa-canada.com> wrote:
>  > 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.
>
>  Yes, that's a bug. Could you please file one in the issue tracker?

Never mind; did it myself:
http://subversion.tigris.org/issues/show_bug.cgi?id=3135

Bye,

Erik.

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

Re: Update Problem When Using Propset and Delete Simultaneously

Posted by Erik Huelsmann <eh...@gmail.com>.
On Thu, Mar 13, 2008 at 9:08 PM, Ben Cuthbert <bc...@ewa-canada.com> wrote:
> 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.

Yes, that's a bug. Could you please file one in the issue tracker?

Thanks!

Bye,

Erik.

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