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

SVN can't update write-protected files?!?

From: Joerg Hessdoerfer <Joerg.Hessdoerfer_at_sea-gmbh.com>
Date: 2005-01-16 22:49:35 CET

Hi,

I've just noticed some troublesome behaiour of SVN on Windows: it can't update
write-protected files! This works fine under Linux, though:

-------------- transscript -------------------
joe@joelap:~/tmp$ svnadmin create repo
joe_at_joelap:~/tmp$ svn co file:///home/joe/tmp/repo wc
Checked out revision 0.
joe@joelap:~/tmp$ cd wc
joe@joelap:~/tmp/wc$ touch xx
joe@joelap:~/tmp/wc$ svn add xx
A xx
joe@joelap:~/tmp/wc$ svn -mtest ci
Adding xx
Transmitting file data .
Committed revision 1.
joe@joelap:~/tmp/wc$ echo x>xx
joe@joelap:~/tmp/wc$ svn -mtest ci
Sending xx
Transmitting file data .
Committed revision 2.
joe@joelap:~/tmp/wc$ chmod -r xx
joe@joelap:~/tmp/wc$ svn -r1 up
U xx
Updated to revision 1.
joe@joelap:~/tmp/wc$ svn --version
svn, version 1.1.1 (r11581)
   compiled Dec 15 2004, 19:22:46

Copyright (C) 2000-2004 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' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' schema
-------------- end transscript --------------

When I do the same on Windows XP:

-------------- transscript -------------------
C:\tmp>svnadmin create repo
C:\tmp>svn co file:///c:/tmp/repo wc
Checked out revision 0.
C:\tmp>cd wc
C:\tmp\wc>echo x>xx
C:\tmp\wc>svn add xx
A xx
C:\tmp\wc>svn -mtest ci
Adding xx
Transmitting file data .
Committed revision 1.
C:\tmp\wc>echo x>>xx
C:\tmp\wc>svn -mtest ci
Sending xx
Transmitting file data .
Committed revision 2.
C:\tmp\wc>attrib +R xx
C:\tmp\wc>svn -r1 up
U xx
svn: In directory ''
svn: Can't move 'xx.tmp' to 'xx': Zugriff verweigert
C:\tmp\wc>svn --version
svn, version 1.1.2 (r12471)
   compiled Jan 1 2005, 10:21:43

Copyright (C) 2000-2004 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' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' schema
-------------- end transscript --------------

Here 'Zugriff verweigert' is german and means 'Access denied'. Why is this
behaviour different? A simple 'attrib -R' on the file cures the problem.

Out tools rely heavily on marking files read-only, and it very time consuming
to check ~15.000 files for read/write flags before any 'svn up', and re-set
the flags afterwards (we don't really want to integrate svn libs into our
tools, we would much prefer to have a 'svn up' always succeed...). Is this a
bug? I would think so, but I did not find any issue for this.

Greetings,
 Joerg

-- 
Leading SW developer  - S.E.A GmbH
Mail: joerg.hessdoerfer@sea-gmbh.com
WWW:  http://www.sea-gmbh.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 16 22:51:29 2005

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

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