delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/22/13:36:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-transfer-encoding
:content-type:to:subject:date:from:message-id; q=dns; s=default; b=
QxmI2r2x1vYY0TRIKq0RY4ty9NbEqem5rQ16HVQ+wAHQDJKoZQxjsJS/D6TjrwxF
00ql4JBa3IKemskATI5An2SZbPI8S0awMZhlNto+Mx8ZDezNUDAvFlQoE/CoJEUD
xJyemds68F70o4Os7eZeWa/jRe6KJtVZucANOUAUSig=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-transfer-encoding
:content-type:to:subject:date:from:message-id; s=default; bh=L0p
v2g/w/Vortmcpph4QZrO4JA0=; b=G6oAdOd6hfunoxfZIT+HHXpNLGDLwS06iTw
3MJ80o2w7/3DMHKJg5Hbd8n0znuIA3CffXNhJlXjTLn7/78I3EXtnbiE3C2SJejY
WeQ+ao0r/SM/ZiCtW1elxct1O6NClAB6BQhry+ai3LqIDerXXBEP9UbqTqJEVIv/
Txj5dmaY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,T_MANY_HDRS_LCASE autolearn=ham version=3.3.2
X-HELO: relais.videotron.ca
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Subversion (svn.exe) prepending current directory to target path when using Windows path format.
X-PHP-Originating-Script: 0:rcmail.php
Date: Thu, 22 Jan 2015 13:36:03 -0500
From: Hans Deragon <hans AT deragon DOT biz>
Message-id: <782f375a51429d892d4053efb93f91c8@server1.deragon.biz>
X-Sender: hans AT deragon DOT biz
User-Agent: Roundcube Webmail/0.9.5
X-IsSubscribed: yes

Greetings,

When I run Cygwin subversion command (svn) with a Windows formatted path 
(C:\dir1\dir2\...), for some reason it prepends the current directory 
(${PWD}) in Cygwin format (/cygdrive/c/...) to the target path in 
Windows format, causing the command to fail.  Using a target path 
expressed in Cygwin format works fine.

Windows path (failure):

   svn info 'C:\Users\user1\companyprojects\project1\trunk\pom.xml'
   svn: E155007: 
'/cygdrive/c/temp/C:\Users\user1\companyprojects\project1\trunk\pom.xml' 
is not a working copy

   Here, /cygdrive/c/temp/ is the current path.  I tested under other 
paths and the same problem occurs.

Cygwin path (works):

   svn info 
/cygdrive/c/Users/user1/companyprojects/project1/trunk/pom.xml
   Path: /cygdrive/c/Users/user1/companyprojects/project1/trunk/pom.xml
   Name: pom.xml
   Working Copy Root Path: 
/cygdrive/c/Users/user1/companyprojects/project1/trunk
   [...deleted extra output...]

I could provide the output of strace if anybody would look at it.

For those asking why I do not provide a Cygwin path (/cygdrive/c/..) in 
the first place, it is because I would like my Java IDE (Intellij IDEA) 
to make use of the same svn.exe executable that I use under Cygwin (thus 
having the best compatibility; its the same tool running).  Obviously, 
my IDE provides paths in Windows format to svn.exe; this is how I found 
the bug.

Best regards,
Hans Deragon

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019