1.7 'svn upgrade' issue on windows vista

2011-08-04 Thread Stephen Meechan
While testing out the svn upgrade feature in 1.7 beta 2, on some working copies 
the upgrade failed with an error E155036. 

The problem was that the svn upgrade command is case sensitive on the WC folder 
name and failed if the name doesn't match exactly. Windows itself is case 
insensitive and none of the other svn commands are case sensitive to the WC 
folder name.

The following test case shows the steps to reproduce the problem using a public 
server:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>cd svn1617

C:\svn1617>svn co http://svn.apache.org/repos/asf/subversion/trunk/notes/wc-ng/ 
C:\TestWC
AC:\TestWC\single-db-per-wc
AC:\TestWC\revert-in-subtree.svg
AC:\TestWC\use-of-tmp-text-base-path
AC:\TestWC\modularization
AC:\TestWC\conflict-storage
AC:\TestWC\externals
AC:\TestWC\locking
AC:\TestWC\pristine-store
AC:\TestWC\copying
AC:\TestWC\nodes
AC:\TestWC\design
AC:\TestWC\conflict-ui
AC:\TestWC\node-data
AC:\TestWC\transitions
Checked out revision 1154040.

C:\svn1617>cd \svn17beta

C:\svn17beta>svn upgrade c:\testwc
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy 'C:\testwc' is too old (format 10, created by Subvers
ion 1.6)

C:\svn17beta>svn upgrade c:\TestWC
Upgraded 'C:\TestWC'

C:\svn17beta>svn --version
svn, version 1.7.0-beta2 (Beta 2)
   compiled Jul 22 2011, 12:44:23

Copyright (C) 2011 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - 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
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme


C:\svn17beta>









Re: 1.7 'svn upgrade' issue on windows vista

2011-08-05 Thread Stephen Meechan
>> The problem was that the svn upgrade command is case sensitive on the WC 
>> folder name and failed if the
>> name doesn't match exactly. Windows itself is case insensitive and none of 
>> the other svn commands are
>> case sensitive to the WC folder name.
>
>That is correct. The Subversion client, and a Subversion repository, are 
>always case-sensitive,
>regardless of whether your local filesystem is case-sensitive or not. I don't 
>believe this is considered >a bug. So be careful to specify things with the 
>correct case.

2 points:

1. I'm aware the repository itself is case sensitive, but all the other svn 
 commands are case insensitive for the WC name, so "svn upgrade" isn't 
working consistently with them

2. the reported error is misleading and meant spending several hours 
investigating why the working copy couldn't be upgraded. (Which is the reason 
for testing with beta releases)

If it's not a bug, then a an more appropriate error message would be an 
improvement.






Re: 1.7 'svn upgrade' issue on windows vista

2011-08-05 Thread Stephen Meechan
thanks Bert, I'll continue with some more testing, with a much faster svn 
update on large working copies this release looks like a very worthwhile 
upgrade.

- Original Message -
From: "Bert Huijben" 
To: "Stephen Meechan" , users@subversion.apache.org
Sent: Friday, 5 August, 2011 12:32:41 GMT +00:00 GMT Britain, Ireland, Portugal
Subject: RE: 1.7 'svn upgrade' issue on windows vista



> -Original Message-
> From: Stephen Meechan [mailto:s...@smeechan.co.uk]
> Sent: vrijdag 5 augustus 2011 1:04
> To: users@subversion.apache.org
> Subject: 1.7 'svn upgrade' issue on windows vista
> 
> While testing out the svn upgrade feature in 1.7 beta 2, on some working
> copies the upgrade failed with an error E155036.
> 
> The problem was that the svn upgrade command is case sensitive on the WC
> folder name and failed if the name doesn't match exactly. Windows itself is
> case insensitive and none of the other svn commands are case sensitive to
> the WC folder name.
> 
> The following test case shows the steps to reproduce the problem using a
> public server:

Thanks for reporting (and the nice reproduction recipe).

I just fixed the issue in r1154165.

(This patch won't make beta 3, but I'll nominate it for backport for 1.7.0)

Bert