X-Recipient: archive-cygwin@delorie.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:from:mime-version:content-type
	:content-transfer-encoding:message-id:date:to:subject:reply-to;
	 q=dns; s=default; b=bB+4iJm6+GSzgcI6ZRnjA0RHhFnP/W2V9Iyw38/OR8m
	mjD+3V6EbsZOu7IkMZVH0pLgfvBdORQQsXw5B13jKDvvgSNNOSl6HIDuFrTkyvPg
	irHDKgjeWwgpbvuX3bFtO1QtYdLGNzcgQD/xS9hLMJIf5K08oAe9EIuc0enCfI2w
	=
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:from:mime-version:content-type
	:content-transfer-encoding:message-id:date:to:subject:reply-to;
	 s=default; bh=8VnlE6Nv8BY1oru8erFF6G3PZ8w=; b=BEgmvzuOPCrF0KHU3
	ASPAamFWn1B7DGwcWVZZa6mvdgBdoa5pZHXexEYzLnQZ4nKDMyFIhJo01NqEVXw2
	gso1W6l/bxYTOOBn5q1ckxQvgJzb/+/lOOoqVB30dkAUUP7stzB9I0XzPjiVTygp
	V7otxNAqWg7tT+15pvXVj3rgz0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=BAYES_00,KAM_VIAGRA1,TW_LR,TW_RW,TW_WX,TW_XR,T_HK_NAME_DR autolearn=no version=3.3.1
X-RRZE-Submit-IP: 131.188.3.18
From: "Dr. Rainer Woitok" <Woitok@RRZE.Uni-Erlangen.DE>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <20836.12668.227270.356590@woitok.rrze.uni-erlangen.de>
Date: Tue, 9 Apr 2013 17:19:24 +0200
To: cygwin@cygwin.com
Subject: Problem with symbolic links and Mercurial's "update" command
Reply-To: cygwin@cygwin.com, Woitok@RRZE.Uni-Erlangen.DE
Note-from-DJ: This may be spam

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.

Sincerely
 Rainer

 ----------------------------------------------------------------------
| Rainer M Woitok                | Phone : (+49 60 93) 487 95 95       |
| Kolpingstraße 3                | Mobile: (+49 172) 813 6 831         |
| D-63846 Laufach                | Mail  : Woitok@RRZE.Uni-Erlangen.DE |
| Germany                        |                                     |
 ----------------------------------------------------------------------

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

