This is the mail archive of the
mailing list for the Cygwin project.
Re: Problem with symbolic links and Mercurial's "update" command
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com, Woitok at RRZE dot Uni-Erlangen dot DE
- Date: Tue, 09 Apr 2013 11:36:12 -0400
- 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>
- Reply-to: cygwin at cygwin dot com
On 4/9/2013 11:19 AM, Dr. Rainer Woitok wrote:
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:
set CYGWIN=glob:noignorecase proc_retry:10 nodosfilewarning winsymlinks
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
-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
$ hg commit -m test.
$ rm *
$ hg status
$ hg update -C
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ ls -l
-rw------- 1 Rainer none 0 Apr 9 15:40 a
-rw------- 1 Rainer none 1 Apr 9 15:40 la
$ cat la
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
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.
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple