Debian Codegraph @

tests/test-trusted.py.out

raw
1 # same user, same group
2 trusted
3 global = /some/path
4 local = /another/path
5 untrusted
6 . . global = /some/path
7 . . local = /another/path
8
9 # same user, different group
10 trusted
11 global = /some/path
12 local = /another/path
13 untrusted
14 . . global = /some/path
15 . . local = /another/path
16
17 # different user, same group
18 not trusting file .hg/hgrc from untrusted user abc, group bar
19 trusted
20 global = /some/path
21 untrusted
22 . . global = /some/path
23 . . local = /another/path
24
25 # different user, same group, but we trust the group
26 trusted
27 global = /some/path
28 local = /another/path
29 untrusted
30 . . global = /some/path
31 . . local = /another/path
32
33 # different user, different group
34 not trusting file .hg/hgrc from untrusted user abc, group def
35 trusted
36 global = /some/path
37 untrusted
38 . . global = /some/path
39 . . local = /another/path
40
41 # different user, different group, but we trust the user
42 trusted
43 global = /some/path
44 local = /another/path
45 untrusted
46 . . global = /some/path
47 . . local = /another/path
48
49 # different user, different group, but we trust the group
50 trusted
51 global = /some/path
52 local = /another/path
53 untrusted
54 . . global = /some/path
55 . . local = /another/path
56
57 # different user, different group, but we trust the user and the group
58 trusted
59 global = /some/path
60 local = /another/path
61 untrusted
62 . . global = /some/path
63 . . local = /another/path
64
65 # we trust all users
66 # different user, different group
67 trusted
68 global = /some/path
69 local = /another/path
70 untrusted
71 . . global = /some/path
72 . . local = /another/path
73
74 # we trust all groups
75 # different user, different group
76 trusted
77 global = /some/path
78 local = /another/path
79 untrusted
80 . . global = /some/path
81 . . local = /another/path
82
83 # we trust all users and groups
84 # different user, different group
85 trusted
86 global = /some/path
87 local = /another/path
88 untrusted
89 . . global = /some/path
90 . . local = /another/path
91
92 # we don't get confused by users and groups with the same name
93 # different user, different group
94 not trusting file .hg/hgrc from untrusted user abc, group def
95 trusted
96 global = /some/path
97 untrusted
98 . . global = /some/path
99 . . local = /another/path
100
101 # list of user names
102 # different user, different group, but we trust the user
103 trusted
104 global = /some/path
105 local = /another/path
106 untrusted
107 . . global = /some/path
108 . . local = /another/path
109
110 # list of group names
111 # different user, different group, but we trust the group
112 trusted
113 global = /some/path
114 local = /another/path
115 untrusted
116 . . global = /some/path
117 . . local = /another/path
118
119 # Can't figure out the name of the user running this process
120 # different user, different group
121 not trusting file .hg/hgrc from untrusted user abc, group def
122 trusted
123 global = /some/path
124 untrusted
125 . . global = /some/path
126 . . local = /another/path
127
128 # prints debug warnings
129 # different user, different group
130 not trusting file .hg/hgrc from untrusted user abc, group def
131 trusted
132 ignoring untrusted configuration option paths.local = /another/path
133 global = /some/path
134 untrusted
135 . . global = /some/path
136 . ignoring untrusted configuration option paths.local = /another/path
137 . local = /another/path
138
139 # report_untrusted enabled without debug hides warnings
140 # different user, different group
141 trusted
142 global = /some/path
143 untrusted
144 . . global = /some/path
145 . . local = /another/path
146
147 # report_untrusted enabled with debug shows warnings
148 # different user, different group
149 not trusting file .hg/hgrc from untrusted user abc, group def
150 trusted
151 ignoring untrusted configuration option paths.local = /another/path
152 global = /some/path
153 untrusted
154 . . global = /some/path
155 . ignoring untrusted configuration option paths.local = /another/path
156 . local = /another/path
157
158 # ui.readconfig sections
159 quux
160
161 # read trusted, untrusted, new ui, trusted
162 not trusting file foobar from untrusted user abc, group def
163 trusted:
164 ignoring untrusted configuration option foobar.baz = quux
165 None
166 untrusted:
167 quux
168
169 # error handling
170 # file doesn't exist
171 # same user, same group
172 # different user, different group
173
174 # parse error
175 # different user, different group
176 not trusting file .hg/hgrc from untrusted user abc, group def
177 ignored .hg/hgrc:1: foo
178 # same user, same group
179 config error at .hg/hgrc:1: foo
180
181
182 # access typed information
183 # different user, different group
184 not trusting file .hg/hgrc from untrusted user abc, group def
185 # suboptions, trusted and untrusted
186 (None, []) ('main', [('one', 'one'), ('two', 'two')])
187 # path, trusted and untrusted
188 None .hg/monty/python
189 # bool, trusted and untrusted
190 False True
191 # int, trusted and untrusted
192 0 42
193 # bytes, trusted and untrusted
194 0 84934656
195 # list, trusted and untrusted
196 [] ['spam', 'ham', 'eggs']