Show More
@@ -271,7 +271,7 b' class basectx(object):' | |||
|
271 | 271 | r = self._repo |
|
272 | 272 | return matchmod.match(r.root, r.getcwd(), pats, |
|
273 | 273 | include, exclude, default, |
|
274 | auditor=r.auditor, ctx=self, | |
|
274 | auditor=r.nofsauditor, ctx=self, | |
|
275 | 275 | listsubrepos=listsubrepos, badfn=badfn) |
|
276 | 276 | |
|
277 | 277 | def diff(self, ctx2=None, match=None, **opts): |
@@ -27,6 +27,45 b' should still fail - maybe' | |||
|
27 | 27 | abort: path 'b/b' traverses symbolic link 'b' (glob) |
|
28 | 28 | [255] |
|
29 | 29 | |
|
30 | $ hg commit -m 'add symlink b' | |
|
31 | ||
|
32 | ||
|
33 | Test symlink traversing when accessing history: | |
|
34 | ----------------------------------------------- | |
|
35 | ||
|
36 | (build a changeset where the path exists as a directory) | |
|
37 | ||
|
38 | $ hg up 0 | |
|
39 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
40 | $ mkdir b | |
|
41 | $ echo c > b/a | |
|
42 | $ hg add b/a | |
|
43 | $ hg ci -m 'add directory b' | |
|
44 | created new head | |
|
45 | ||
|
46 | Test that hg cat does not do anything wrong the working copy has 'b' as directory | |
|
47 | ||
|
48 | $ hg cat b/a | |
|
49 | c | |
|
50 | $ hg cat -r "desc(directory)" b/a | |
|
51 | c | |
|
52 | $ hg cat -r "desc(symlink)" b/a | |
|
53 | b/a: no such file in rev bc151a1f53bd | |
|
54 | [1] | |
|
55 | ||
|
56 | Test that hg cat does not do anything wrong the working copy has 'b' as a symlink (issue4749) | |
|
57 | ||
|
58 | $ hg up 'desc(symlink)' | |
|
59 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
60 | $ hg cat b/a | |
|
61 | b/a: no such file in rev bc151a1f53bd | |
|
62 | [1] | |
|
63 | $ hg cat -r "desc(directory)" b/a | |
|
64 | c | |
|
65 | $ hg cat -r "desc(symlink)" b/a | |
|
66 | b/a: no such file in rev bc151a1f53bd | |
|
67 | [1] | |
|
68 | ||
|
30 | 69 | #endif |
|
31 | 70 | |
|
32 | 71 |
General Comments 0
You need to be logged in to leave comments.
Login now