delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/22/14:30:30

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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=JFAzbMQa5Ar0p8zh
rNsLZaPjBuklEDGHYLzUAmTjDaNTBrSZwsvjamVVTcLS0QQNgW7CH7Z7jDEWmHtG
bDPABf67X2/LgX0RgegfArEQ1KIT+/dkHx7ffssMuYmudeikdsTFRzFWfwvfhSPe
2l91bZiFeDKvdwX8BvWgOhxKquw=
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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=HRdoUCdjy2p2TW70lRkCai
qrSuc=; b=TSJPXECWEnFElBFSuasufmN3EEXIwEQSra2QCRb45g6xhHAk7OTFW/
yYjM15zIy5+YxkqhAPrjvLMpoijBQNjHveuJZXPvn5vLn4TZrMi/0fkGFW2/TOe3
NDyiAb6ShueHBRWkjBGJtO925SViukLyQniBNTugdlxrSUvNf2T6A=
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-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173021pub.verizon.net
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.1 cv=Kc1larcG c=1 sm=1 tr=0 a=toTMxtHQF+05ooui8kuJQw==:117 a=vP6ySPhpAh4A:10 a=N659UExz7-8A:10 a=w_pzkKWiAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YNv0rlydsVwA:10 a=T3gw7ffu_TZUXL4drpkA:9 a=pILNOxqGKmIA:10
Message-id: <54C14F2E.2030603@cygwin.com>
Date: Thu, 22 Jan 2015 14:27:42 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Subversion (svn.exe) prepending current directory to target path when using Windows path format.
References: <782f375a51429d892d4053efb93f91c8 AT server1 DOT deragon DOT biz>
In-reply-to: <782f375a51429d892d4053efb93f91c8@server1.deragon.biz>

On 01/22/2015 01:36 PM, Hans Deragon wrote:
> 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.

If you can use 'cygpath' to convert the incoming Windows path to POSIX form,
that would solve the problem for you.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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