[issue1888] Linux repo with symlink accessed via SMB

Olaf bugs at mercurial.selenic.com
Tue Oct 27 19:07:42 UTC 2009


New submission from Olaf <abn2bf at magic.ms>:

Hello hg team,

let's consider a repo in Linux containing a file and a symlink:

olaf at ubuntu:~/hg.test/symlink$ l
total 4
-rw-r--r-- 1 olaf olaf 13 2009-10-25 22:51 myFile
lrwxrwxrwx 1 olaf olaf  6 2009-10-25 22:51 myLink -> myFile
olaf at ubuntu:~/hg.test/symlink$ hg st
olaf at ubuntu:~/hg.test/symlink$

Both is committed. If I access the same repository from Windows via SMB (we
are currently used to ClearCase's interop views...), hg on Windows
(incorrectly) detects modifications

Z:\symlink>hg st
M myLink
Z:\symlink>hg diff
diff -r 396df08e1624 myLink
--- a/myLink    Sun Oct 25 22:52:09 2009 +0100
+++ b/myLink    Tue Oct 27 19:53:51 2009 +0100
@@ -1,1 +1,1 @@
-myFile
\ No newline at end of file
+some content

Z:\symlink>

Actually Samba follows the symlink and shows the content of myFile to
Windows. Even worse you can play pingpong when you start to commit on both
sides.

It's obvious that SMB hides what really happens to hg and Windows cannot
really handle symlinks - so we don't need to argue here ;-)

Nevertheless we are currently investigating if hg could replace our complex
ClearCase UCM setup and many people are used to edit/checkin on Windows and
compile on Linux. I think we would be fine if hg would simply ignore changes
to symlinks on Windows completely (if the repo meta data contains
information on the filetype???). Modifications to symlinks need to be done
from Linux side then.

Is there a chance to workaround?

greetinX
/Olaf

----------
messages: 10837
nosy: olaf
priority: urgent
status: unread
title: Linux repo with symlink accessed via SMB
topic: 1.3.1, status, symlinks

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1888>
____________________________________________________



More information about the Mercurial-devel mailing list