delorie.com/archives/browse.cgi | search |
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=vqqDT8SxGjC/HWyl | |
1BZxFb3uLhh7FinnKJ49Oyi3QOwB0ssKqpzk3bfZHloAEQ5w9JbS17WUEM+EgJFr | |
O1x8Vh+DN1cgHSsbTf1HBc56gQCTmEHEJjFx6rCJALcYlMo4ovuGyvKKb0oiz95R | |
GgglFwKs0TRdevvRf+woPlVxbXk= | |
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=ARNeve5H7u3j0qk+gjt+sM | |
VUOxA=; b=fShHBtRnpm5SdQ7Hv0ijd+URRQ1t5L7777bStmI8PYHcloJCqDux8T | |
Nxi6DzE/hOUIThVFLLGA78y6iVx04u9a69Y8KTzOwml1yDOPQbiLMbLZom8HVlXs | |
YgKr17RUe1JGfP2srPIARf7ES1SLKSQ2MWfU/iNxWhzMErKACLVQo= | |
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 |
X-Spam-SWARE-Status: | No, score=3.5 required=5.0 tests=AWL,BAYES_50,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_LR,TW_RW,TW_WX,TW_XR autolearn=no version=3.3.1 |
Message-id: | <5164356C.2090707@cygwin.com> |
Date: | Tue, 09 Apr 2013 11:36:12 -0400 |
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 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com, Woitok AT RRZE DOT Uni-Erlangen DOT DE |
Subject: | Re: Problem with symbolic links and Mercurial's "update" command |
References: | <20836 DOT 12668 DOT 227270 DOT 356590 AT woitok DOT rrze DOT uni-erlangen DOT de> |
In-reply-to: | <20836.12668.227270.356590@woitok.rrze.uni-erlangen.de> |
On 4/9/2013 11:19 AM, Dr. Rainer Woitok wrote: > Greetings, > > the problem I'm having seems to be either Mercurial or Cygwin related. > I'm currently using Mercurial 2.4.2 and Cygwin 1.7.17, which I'm running > with the "winsymlinks" option in the "CYGWIN" environment variable: > > @echo off > > set CYGWIN=glob:noignorecase proc_retry:10 nodosfilewarning winsymlinks > set PATH=c:\cygwin\bin > > C: > chdir C:\cygwin\bin > > sh --login -i > > Even though the problem surfaced in a rather large repository, I could > reproduce it in an almost empty one, like this: > > $ hg --version > Mercurial Distributed SCM (version 2.4.2) > (see http://mercurial.selenic.com for more information) > > Copyright (C) 2005-2012 Matt Mackall and others > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > $ uname -a > CYGWIN_NT-6.0 tablet 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin > $ mkdir Test > $ cd Test > $ hg init > $ touch a > $ ln -s a la > $ ls -l > total 1 > -rw------- 1 Rainer none 0 Apr 9 15:37 a > lrwxrwxrwx 1 Rainer none 1 Apr 9 15:37 la -> a > $ hg add * > $ hg status > A a > A la > $ hg commit -m test. > $ rm * > $ hg status > ! a > ! la > $ hg update -C > 2 files updated, 0 files merged, 0 files removed, 0 files unresolved > $ ls -l > total 1 > -rw------- 1 Rainer none 0 Apr 9 15:40 a > -rw------- 1 Rainer none 1 Apr 9 15:40 la > $ cat la > a$ > > Mind that while the first "ls" command shows "la" to be a symbolic link, > the second "ls" and the "cat" commands show "la" to be a plain file > containing the single character file name (without trailing newline > character) the symbolic link was originally pointing to. > > Since I cannot reproduce this link killing behaviour under OpenSolaris > using Mercurial 1.7.3 (a bit outdated, yes, but this is not under my > control :-), I suspect this could be Cygwin rather than Mercurial > related. > > Any help would be appreciated, and please also reply to me personally, > as I am not subscribed to this list. Does mecurial 2.5.2 help? Does removing setting "nowinsymlinks" help? Presumably, mercurial either isn't restoring the read-only attribute or is munging the LNK suffix. You might check these possibilities. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |