view tests/test-debugbuilddag.out @ 11769:ca6cebd8734e stable

dirstate: ignore symlinks when fs cannot handle them (issue1888) When the filesystem cannot handle the executable bit, we currently ignore it completely when looking for modified files. Similarly, it is impossible to set or clear the bit when the filesystem ignores it. This patch makes Mercurial treat symbolic links the same way. Symlinks are a little different since they manifest themselves as small files containing a filename (the symlink target). On Windows, these files show up as regular files, and on Linux and Mac they show up as real symlinks. Issue1888 presents a case where the symlink files are better ignored from the Windows side. A Linux client creates symlinks in a working copy which is shared over a network between Linux and Windows clients. The Samba server is helpful and defererences the symlink when the Windows client looks at it. This means that Mercurial on the Windows side sees file content instead of a file name in the symlink, and hence flags the link as modified. Ignoring the change would be much more helpful, similarly to how Mercurial does not report any changes when executable bits are ignored in a checkout on Windows. An initial checkout of a symbolic link on a file system that cannot handle symbolic links will still result in a regular file containing the target file name as its content. Sharing such a checkout with a Linux client will not turn the file into a symlink automatically, but 'hg revert' can fix that. After the revert, the Windows client will see the correct file content (provided by the Samba server when it follows the link on the Linux side) and otherwise ignore the change. Running 'hg perfstatus' 10 times gives these results: Before: After: min: 0.544703 min: 0.546549 med: 0.547592 med: 0.548881 avg: 0.549146 avg: 0.548549 max: 0.564112 max: 0.551504 The median time is increased about 0.24%.
author Martin Geisler <mg@aragost.com>
date Mon, 09 Aug 2010 15:31:56 +0200
parents 0f3c8a47960e
children fc360de66217
line wrap: on
line source

---- overwritten and appended files
-- dag
+2:f
+3:p2
@temp*f+3
@default*/p2+2:tip
-- glog
@  11: r11 [] @ 11.00
|
o  10: r10 [] @ 10.00
|
o    9: r9 [] @ 9.00
|\
| o  8: r8 [temp] @ 8.00
| |
| o  7: r7 [temp] @ 7.00
| |
| o  6: r6 [temp] @ 6.00
| |
| o  5: r5 [temp] @ 5.00
| |
o |  4: r4 [] @ 4.00
| |
o |  3: r3 [] @ 3.00
| |
o |  2: r2 [] @ 2.00
|/
o  1: r1 [] @ 1.00
|
o  0: r0 [] @ 0.00

-- glog of
@  11: r11 []
|
o  10: r10 []
|
o    9: r9 []
|\
| o  8: r8 [temp]
| |
| o  7: r7 [temp]
| |
| o  6: r6 [temp]
| |
| o  5: r5 [temp]
| |
o |  4: r4 []
| |
o |  3: r3 []
| |
o |  2: r2 []
|/
o  1: r1 []
|
o  0: r0 []

-- glog af
@  11: r11 []
|
o  10: r10 []
|
o    9: r9 []
|\
| o  8: r8 [temp]
| |
| o  7: r7 [temp]
| |
| o  6: r6 [temp]
| |
| o  5: r5 [temp]
| |
o |  4: r4 []
| |
o |  3: r3 []
| |
o |  2: r2 []
|/
o  1: r1 []
|
o  0: r0 []

-- tags
tip                               11:f96e381c614c
p2                                 4:d9d6db981b55 local
f                                  1:73253def624e local
-- cat of
r11
-- cat af
r0
r1
r5
r6
r7
r8
r9
r10
r11
---- new and mergeable files
-- dag
+2:f
+3:p2
@temp*f+3
@default*/p2+2:tip
-- glog
@  11: r11 [] @ 11.00
|
o  10: r10 [] @ 10.00
|
o    9: r9 [] @ 9.00
|\
| o  8: r8 [temp] @ 8.00
| |
| o  7: r7 [temp] @ 7.00
| |
| o  6: r6 [temp] @ 6.00
| |
| o  5: r5 [temp] @ 5.00
| |
o |  4: r4 [] @ 4.00
| |
o |  3: r3 [] @ 3.00
| |
o |  2: r2 [] @ 2.00
|/
o  1: r1 [] @ 1.00
|
o  0: r0 [] @ 0.00

-- glog mf
@  11: r11 []
|
o  10: r10 []
|
o    9: r9 []
|\
| o  8: r8 [temp]
| |
| o  7: r7 [temp]
| |
| o  6: r6 [temp]
| |
| o  5: r5 [temp]
| |
o |  4: r4 []
| |
o |  3: r3 []
| |
o |  2: r2 []
|/
o  1: r1 []
|
o  0: r0 []

-- man r4
mf
nf0
nf1
nf2
nf3
nf4
-- cat r4 mf
0 r0
1
2 r1
3
4 r2
5
6 r3
7
8 r4
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- man r8
mf
nf0
nf1
nf5
nf6
nf7
nf8
-- cat r8 mf
0 r0
1
2 r1
3
4
5
6
7
8
9
10 r5
11
12 r6
13
14 r7
15
16 r8
17
18
19
20
21
22
23
-- man
mf
nf0
nf1
nf10
nf11
nf2
nf3
nf4
nf5
nf6
nf7
nf8
nf9
-- cat mf
0 r0
1
2 r1
3
4 r2
5
6 r3
7
8 r4
9
10 r5
11
12 r6
13
14 r7
15
16 r8
17
18 r9
19
20 r10
21
22 r11
23
---- command
-- dag
+4:tip
-- glog
@  3: r3 []
|
o  2: r2 []
|
o  1: r1 []
|
o  0: r0 []

-- glog X
o  2: r2 []