Jörg Schaible wrote:
So, do you say that Cygwin's svn has a problem if you call it directly on
command line with an absolute path like
svn info /cygpath/c/path/to/managed/source
I can hardly believe this (cannot test it anymore, Windows free zone). The
error above indicates for me that you actually called something like
svn info /cygpath
I don't call svn directly, Maven does. I've just modified
maven-scm-provider-svnexe-1.2.jar to generate absolute cygwin paths
based on .scm/svn-settings.xml. Here's my .scm/svn-settings.xml:
<svn-settings>
<useCygwinPath>true</useCygwinPath>
<cygwinMountPath>/cygdrive</cygwinMountPath>
</svn-settings>
This is what I get when I run mvn release:prepare:
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file
c:\Users\ovidiu\AppData\Local\Temp\maven-scm-1585775448.commit --targets
c:\Users\ovidiu\AppData\Local\Temp\maven-scm-45206-targets"
[INFO] Working directory:
c:\work\playground\maven\release-plugin-experiments
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: '/cygdrive' is not a working copy
svn: Can't open file '/cygdrive/.svn/entries': No such file or directory
This is the content of the maven-scm-45206-targets file.
/cygdrive/c/work/playground/maven/release-plugin-experiments/pom.xml
/cygdrive/C/work/playground/maven/release-plugin-experiments/sub-module-one/pom.xml
This is the result of a neutral cygwin utility (copy and paste from
maven-scm-45206-targets):
$ file /cygdrive/c/work/playground/maven/release-plugin-experiments/pom.xml
/cygdrive/c/work/playground/maven/release-plugin-experiments/pom.xml:
ASCII English text, with CRLF line terminators
which tells me the path is correctly built.
This is the result of running svn from command line, with the same
target files:
$ svn ci -m "test" --targets
/cygdrive/c/Users/ovidiu/AppData/Local/Temp/maven-scm-45206-targets
svn: '/cygdrive' is not a working copy
svn: Can't open file '/cygdrive/.svn/entries': No such file or director
However, svn info works
$ svn info
/cygdrive/c/work/playground/maven/release-plugin-experiments/pom.xml
Path: /cygdrive/c/work/playground/maven/release-plugin-experiments/pom.xml
Name: pom.xml
URL:
svn+ssh://ovi...@home.feodorov.com/home/svn/server/repos/playground/trunk/maven/release-plugin-experiments/pom.xml
Repository Root:
svn+ssh://ovi...@example.com/home/svn/server/repos/playground
Repository UUID: 79ac6380-a99b-4678-936a-73d73a85994a
Revision: 453
Node Kind: file
Schedule: normal
Last Changed Author: ovidiu
Last Changed Rev: 452
Last Changed Date: 2009-07-02 07:43:37 -0700 (Thu, 02 Jul 2009)
Text Last Updated: 2009-07-02 07:43:18 -0700 (Thu, 02 Jul 2009)
Checksum: e7f7956c24d1b524bcce15a80a2d66e0
Could be a bug in svn, I don't know.
$ svn --version
svn, version 1.5.4 (r33841)
compiled Oct 24 2008, 12:23:22