Show More
@@ -1,74 +1,75 b'' | |||||
1 | # base85.py: pure python base85 codec |
|
1 | # base85.py: pure python base85 codec | |
2 | # |
|
2 | # | |
3 | # Copyright (C) 2009 Brendan Cully <brendan@kublai.com> |
|
3 | # Copyright (C) 2009 Brendan Cully <brendan@kublai.com> | |
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | import struct |
|
8 | import struct | |
9 |
|
9 | |||
10 | _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ |
|
10 | _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ | |
11 | "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~" |
|
11 | "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~" | |
12 | _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars] |
|
12 | _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars] | |
13 | _b85dec = {} |
|
13 | _b85dec = {} | |
14 |
|
14 | |||
15 | def _mkb85dec(): |
|
15 | def _mkb85dec(): | |
16 | for i, c in enumerate(_b85chars): |
|
16 | for i, c in enumerate(_b85chars): | |
17 | _b85dec[c] = i |
|
17 | _b85dec[c] = i | |
18 |
|
18 | |||
19 | def b85encode(text, pad=False): |
|
19 | def b85encode(text, pad=False): | |
20 | """encode text in base85 format""" |
|
20 | """encode text in base85 format""" | |
21 | l = len(text) |
|
21 | l = len(text) | |
22 | r = l % 4 |
|
22 | r = l % 4 | |
23 | if r: |
|
23 | if r: | |
24 | text += '\0' * (4 - r) |
|
24 | text += '\0' * (4 - r) | |
25 | longs = len(text) >> 2 |
|
25 | longs = len(text) >> 2 | |
26 | words = struct.unpack('>%dL' % (longs), text) |
|
26 | words = struct.unpack('>%dL' % (longs), text) | |
27 |
|
27 | |||
28 | out = ''.join(_b85chars[(word // 52200625) % 85] + |
|
28 | out = ''.join(_b85chars[(word // 52200625) % 85] + | |
29 | _b85chars2[(word // 7225) % 7225] + |
|
29 | _b85chars2[(word // 7225) % 7225] + | |
30 | _b85chars2[word % 7225] |
|
30 | _b85chars2[word % 7225] | |
31 | for word in words) |
|
31 | for word in words) | |
32 |
|
32 | |||
33 | if pad: |
|
33 | if pad: | |
34 | return out |
|
34 | return out | |
35 |
|
35 | |||
36 | # Trim padding |
|
36 | # Trim padding | |
37 | olen = l % 4 |
|
37 | olen = l % 4 | |
38 | if olen: |
|
38 | if olen: | |
39 | olen += 1 |
|
39 | olen += 1 | |
40 | olen += l // 4 * 5 |
|
40 | olen += l // 4 * 5 | |
41 | return out[:olen] |
|
41 | return out[:olen] | |
42 |
|
42 | |||
43 | def b85decode(text): |
|
43 | def b85decode(text): | |
44 | """decode base85-encoded text""" |
|
44 | """decode base85-encoded text""" | |
45 | if not _b85dec: |
|
45 | if not _b85dec: | |
46 | _mkb85dec() |
|
46 | _mkb85dec() | |
47 |
|
47 | |||
48 | l = len(text) |
|
48 | l = len(text) | |
49 | out = [] |
|
49 | out = [] | |
50 | for i in range(0, len(text), 5): |
|
50 | for i in range(0, len(text), 5): | |
51 | chunk = text[i:i + 5] |
|
51 | chunk = text[i:i + 5] | |
52 | acc = 0 |
|
52 | acc = 0 | |
53 | for j, c in enumerate(chunk): |
|
53 | for j, c in enumerate(chunk): | |
54 | try: |
|
54 | try: | |
55 | acc = acc * 85 + _b85dec[c] |
|
55 | acc = acc * 85 + _b85dec[c] | |
56 | except KeyError: |
|
56 | except KeyError: | |
57 |
raise |
|
57 | raise ValueError('bad base85 character at position %d' | |
|
58 | % (i + j)) | |||
58 | if acc > 4294967295: |
|
59 | if acc > 4294967295: | |
59 |
raise |
|
60 | raise ValueError('Base85 overflow in hunk starting at byte %d' % i) | |
60 | out.append(acc) |
|
61 | out.append(acc) | |
61 |
|
62 | |||
62 | # Pad final chunk if necessary |
|
63 | # Pad final chunk if necessary | |
63 | cl = l % 5 |
|
64 | cl = l % 5 | |
64 | if cl: |
|
65 | if cl: | |
65 | acc *= 85 ** (5 - cl) |
|
66 | acc *= 85 ** (5 - cl) | |
66 | if cl > 1: |
|
67 | if cl > 1: | |
67 | acc += 0xffffff >> (cl - 2) * 8 |
|
68 | acc += 0xffffff >> (cl - 2) * 8 | |
68 | out[-1] = acc |
|
69 | out[-1] = acc | |
69 |
|
70 | |||
70 | out = struct.pack('>%dL' % (len(out)), *out) |
|
71 | out = struct.pack('>%dL' % (len(out)), *out) | |
71 | if cl: |
|
72 | if cl: | |
72 | out = out[:-(5 - cl)] |
|
73 | out = out[:-(5 - cl)] | |
73 |
|
74 | |||
74 | return out |
|
75 | return out |
@@ -1,636 +1,633 b'' | |||||
1 | $ check_code="$TESTDIR"/../contrib/check-code.py |
|
1 | $ check_code="$TESTDIR"/../contrib/check-code.py | |
2 | $ cd "$TESTDIR"/.. |
|
2 | $ cd "$TESTDIR"/.. | |
3 | $ if hg identify -q > /dev/null; then : |
|
3 | $ if hg identify -q > /dev/null; then : | |
4 | > else |
|
4 | > else | |
5 | > echo "skipped: not a Mercurial working dir" >&2 |
|
5 | > echo "skipped: not a Mercurial working dir" >&2 | |
6 | > exit 80 |
|
6 | > exit 80 | |
7 | > fi |
|
7 | > fi | |
8 | $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!' |
|
8 | $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!' | |
9 |
|
9 | |||
10 | $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true |
|
10 | $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true | |
11 | contrib/check-code.py:0: |
|
11 | contrib/check-code.py:0: | |
12 | > # (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"), |
|
12 | > # (r'^\s+[^_ \n][^_. \n]+_[^_\n]+\s*=', "don't use underbars in identifiers"), | |
13 | warning: line over 80 characters |
|
13 | warning: line over 80 characters | |
14 | contrib/perf.py:0: |
|
14 | contrib/perf.py:0: | |
15 | > except: |
|
15 | > except: | |
16 | warning: naked except clause |
|
16 | warning: naked except clause | |
17 | contrib/perf.py:0: |
|
17 | contrib/perf.py:0: | |
18 | > #timer(lambda: sum(map(len, repo.dirstate.status(m, [], False, False, False)))) |
|
18 | > #timer(lambda: sum(map(len, repo.dirstate.status(m, [], False, False, False)))) | |
19 | warning: line over 80 characters |
|
19 | warning: line over 80 characters | |
20 | contrib/perf.py:0: |
|
20 | contrib/perf.py:0: | |
21 | > except: |
|
21 | > except: | |
22 | warning: naked except clause |
|
22 | warning: naked except clause | |
23 | contrib/setup3k.py:0: |
|
23 | contrib/setup3k.py:0: | |
24 | > except: |
|
24 | > except: | |
25 | warning: naked except clause |
|
25 | warning: naked except clause | |
26 | contrib/setup3k.py:0: |
|
26 | contrib/setup3k.py:0: | |
27 | > except: |
|
27 | > except: | |
28 | warning: naked except clause |
|
28 | warning: naked except clause | |
29 | contrib/setup3k.py:0: |
|
29 | contrib/setup3k.py:0: | |
30 | > except: |
|
30 | > except: | |
31 | warning: naked except clause |
|
31 | warning: naked except clause | |
32 | warning: naked except clause |
|
32 | warning: naked except clause | |
33 | warning: naked except clause |
|
33 | warning: naked except clause | |
34 | contrib/shrink-revlog.py:0: |
|
34 | contrib/shrink-revlog.py:0: | |
35 | > except: |
|
35 | > except: | |
36 | warning: naked except clause |
|
36 | warning: naked except clause | |
37 | doc/gendoc.py:0: |
|
37 | doc/gendoc.py:0: | |
38 | > "together with Mercurial. Help for other extensions is available " |
|
38 | > "together with Mercurial. Help for other extensions is available " | |
39 | warning: line over 80 characters |
|
39 | warning: line over 80 characters | |
40 | hgext/bugzilla.py:0: |
|
40 | hgext/bugzilla.py:0: | |
41 | > raise util.Abort(_('cannot find bugzilla user id for %s or %s') % |
|
41 | > raise util.Abort(_('cannot find bugzilla user id for %s or %s') % | |
42 | warning: line over 80 characters |
|
42 | warning: line over 80 characters | |
43 | hgext/bugzilla.py:0: |
|
43 | hgext/bugzilla.py:0: | |
44 | > bzdir = self.ui.config('bugzilla', 'bzdir', '/var/www/html/bugzilla') |
|
44 | > bzdir = self.ui.config('bugzilla', 'bzdir', '/var/www/html/bugzilla') | |
45 | warning: line over 80 characters |
|
45 | warning: line over 80 characters | |
46 | hgext/convert/__init__.py:0: |
|
46 | hgext/convert/__init__.py:0: | |
47 | > ('', 'ancestors', '', _('show current changeset in ancestor branches')), |
|
47 | > ('', 'ancestors', '', _('show current changeset in ancestor branches')), | |
48 | warning: line over 80 characters |
|
48 | warning: line over 80 characters | |
49 | hgext/convert/bzr.py:0: |
|
49 | hgext/convert/bzr.py:0: | |
50 | > except: |
|
50 | > except: | |
51 | warning: naked except clause |
|
51 | warning: naked except clause | |
52 | hgext/convert/common.py:0: |
|
52 | hgext/convert/common.py:0: | |
53 | > except: |
|
53 | > except: | |
54 | warning: naked except clause |
|
54 | warning: naked except clause | |
55 | hgext/convert/common.py:0: |
|
55 | hgext/convert/common.py:0: | |
56 | > except: |
|
56 | > except: | |
57 | warning: naked except clause |
|
57 | warning: naked except clause | |
58 | warning: naked except clause |
|
58 | warning: naked except clause | |
59 | hgext/convert/convcmd.py:0: |
|
59 | hgext/convert/convcmd.py:0: | |
60 | > except: |
|
60 | > except: | |
61 | warning: naked except clause |
|
61 | warning: naked except clause | |
62 | hgext/convert/cvs.py:0: |
|
62 | hgext/convert/cvs.py:0: | |
63 | > # /1 :pserver:user@example.com:2401/cvsroot/foo Ah<Z |
|
63 | > # /1 :pserver:user@example.com:2401/cvsroot/foo Ah<Z | |
64 | warning: line over 80 characters |
|
64 | warning: line over 80 characters | |
65 | hgext/convert/cvsps.py:0: |
|
65 | hgext/convert/cvsps.py:0: | |
66 | > assert len(branches) == 1, 'unknown branch: %s' % e.mergepoint |
|
66 | > assert len(branches) == 1, 'unknown branch: %s' % e.mergepoint | |
67 | warning: line over 80 characters |
|
67 | warning: line over 80 characters | |
68 | hgext/convert/cvsps.py:0: |
|
68 | hgext/convert/cvsps.py:0: | |
69 | > ui.write('Ancestors: %s\n' % (','.join(r))) |
|
69 | > ui.write('Ancestors: %s\n' % (','.join(r))) | |
70 | warning: unwrapped ui message |
|
70 | warning: unwrapped ui message | |
71 | hgext/convert/cvsps.py:0: |
|
71 | hgext/convert/cvsps.py:0: | |
72 | > ui.write('Parent: %d\n' % cs.parents[0].id) |
|
72 | > ui.write('Parent: %d\n' % cs.parents[0].id) | |
73 | warning: unwrapped ui message |
|
73 | warning: unwrapped ui message | |
74 | hgext/convert/cvsps.py:0: |
|
74 | hgext/convert/cvsps.py:0: | |
75 | > ui.write('Parents: %s\n' % |
|
75 | > ui.write('Parents: %s\n' % | |
76 | warning: unwrapped ui message |
|
76 | warning: unwrapped ui message | |
77 | hgext/convert/cvsps.py:0: |
|
77 | hgext/convert/cvsps.py:0: | |
78 | > except: |
|
78 | > except: | |
79 | warning: naked except clause |
|
79 | warning: naked except clause | |
80 | hgext/convert/cvsps.py:0: |
|
80 | hgext/convert/cvsps.py:0: | |
81 | > ui.write('Branchpoints: %s \n' % ', '.join(branchpoints)) |
|
81 | > ui.write('Branchpoints: %s \n' % ', '.join(branchpoints)) | |
82 | warning: unwrapped ui message |
|
82 | warning: unwrapped ui message | |
83 | hgext/convert/cvsps.py:0: |
|
83 | hgext/convert/cvsps.py:0: | |
84 | > ui.write('Author: %s\n' % cs.author) |
|
84 | > ui.write('Author: %s\n' % cs.author) | |
85 | warning: unwrapped ui message |
|
85 | warning: unwrapped ui message | |
86 | hgext/convert/cvsps.py:0: |
|
86 | hgext/convert/cvsps.py:0: | |
87 | > ui.write('Branch: %s\n' % (cs.branch or 'HEAD')) |
|
87 | > ui.write('Branch: %s\n' % (cs.branch or 'HEAD')) | |
88 | warning: unwrapped ui message |
|
88 | warning: unwrapped ui message | |
89 | hgext/convert/cvsps.py:0: |
|
89 | hgext/convert/cvsps.py:0: | |
90 | > ui.write('Date: %s\n' % util.datestr(cs.date, |
|
90 | > ui.write('Date: %s\n' % util.datestr(cs.date, | |
91 | warning: unwrapped ui message |
|
91 | warning: unwrapped ui message | |
92 | hgext/convert/cvsps.py:0: |
|
92 | hgext/convert/cvsps.py:0: | |
93 | > ui.write('Log:\n') |
|
93 | > ui.write('Log:\n') | |
94 | warning: unwrapped ui message |
|
94 | warning: unwrapped ui message | |
95 | hgext/convert/cvsps.py:0: |
|
95 | hgext/convert/cvsps.py:0: | |
96 | > ui.write('Members: \n') |
|
96 | > ui.write('Members: \n') | |
97 | warning: unwrapped ui message |
|
97 | warning: unwrapped ui message | |
98 | hgext/convert/cvsps.py:0: |
|
98 | hgext/convert/cvsps.py:0: | |
99 | > ui.write('PatchSet %d \n' % cs.id) |
|
99 | > ui.write('PatchSet %d \n' % cs.id) | |
100 | warning: unwrapped ui message |
|
100 | warning: unwrapped ui message | |
101 | hgext/convert/cvsps.py:0: |
|
101 | hgext/convert/cvsps.py:0: | |
102 | > ui.write('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1], |
|
102 | > ui.write('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1], | |
103 | warning: unwrapped ui message |
|
103 | warning: unwrapped ui message | |
104 | hgext/convert/git.py:0: |
|
104 | hgext/convert/git.py:0: | |
105 | > except: |
|
105 | > except: | |
106 | warning: naked except clause |
|
106 | warning: naked except clause | |
107 | hgext/convert/git.py:0: |
|
107 | hgext/convert/git.py:0: | |
108 | > fh = self.gitopen('git diff-tree --name-only --root -r %s "%s^%s" --' |
|
108 | > fh = self.gitopen('git diff-tree --name-only --root -r %s "%s^%s" --' | |
109 | warning: line over 80 characters |
|
109 | warning: line over 80 characters | |
110 | hgext/convert/hg.py:0: |
|
110 | hgext/convert/hg.py:0: | |
111 | > # detect missing revlogs and abort on errors or populate self.ignored |
|
111 | > # detect missing revlogs and abort on errors or populate self.ignored | |
112 | warning: line over 80 characters |
|
112 | warning: line over 80 characters | |
113 | hgext/convert/hg.py:0: |
|
113 | hgext/convert/hg.py:0: | |
114 | > except: |
|
114 | > except: | |
115 | warning: naked except clause |
|
115 | warning: naked except clause | |
116 | warning: naked except clause |
|
116 | warning: naked except clause | |
117 | hgext/convert/hg.py:0: |
|
117 | hgext/convert/hg.py:0: | |
118 | > except: |
|
118 | > except: | |
119 | warning: naked except clause |
|
119 | warning: naked except clause | |
120 | hgext/convert/monotone.py:0: |
|
120 | hgext/convert/monotone.py:0: | |
121 | > except: |
|
121 | > except: | |
122 | warning: naked except clause |
|
122 | warning: naked except clause | |
123 | hgext/convert/monotone.py:0: |
|
123 | hgext/convert/monotone.py:0: | |
124 | > except: |
|
124 | > except: | |
125 | warning: naked except clause |
|
125 | warning: naked except clause | |
126 | hgext/convert/subversion.py:0: |
|
126 | hgext/convert/subversion.py:0: | |
127 | > raise util.Abort(_('svn: branch has no revision %s') % to_revnum) |
|
127 | > raise util.Abort(_('svn: branch has no revision %s') % to_revnum) | |
128 | warning: line over 80 characters |
|
128 | warning: line over 80 characters | |
129 | hgext/convert/subversion.py:0: |
|
129 | hgext/convert/subversion.py:0: | |
130 | > except: |
|
130 | > except: | |
131 | warning: naked except clause |
|
131 | warning: naked except clause | |
132 | hgext/convert/subversion.py:0: |
|
132 | hgext/convert/subversion.py:0: | |
133 | > args = [self.baseurl, relpaths, start, end, limit, discover_changed_paths, |
|
133 | > args = [self.baseurl, relpaths, start, end, limit, discover_changed_paths, | |
134 | warning: line over 80 characters |
|
134 | warning: line over 80 characters | |
135 | hgext/convert/subversion.py:0: |
|
135 | hgext/convert/subversion.py:0: | |
136 | > self.trunkname = self.ui.config('convert', 'svn.trunk', 'trunk').strip('/') |
|
136 | > self.trunkname = self.ui.config('convert', 'svn.trunk', 'trunk').strip('/') | |
137 | warning: line over 80 characters |
|
137 | warning: line over 80 characters | |
138 | hgext/convert/subversion.py:0: |
|
138 | hgext/convert/subversion.py:0: | |
139 | > except: |
|
139 | > except: | |
140 | warning: naked except clause |
|
140 | warning: naked except clause | |
141 | hgext/convert/subversion.py:0: |
|
141 | hgext/convert/subversion.py:0: | |
142 | > def get_log_child(fp, url, paths, start, end, limit=0, discover_changed_paths=True, |
|
142 | > def get_log_child(fp, url, paths, start, end, limit=0, discover_changed_paths=True, | |
143 | warning: line over 80 characters |
|
143 | warning: line over 80 characters | |
144 | hgext/eol.py:0: |
|
144 | hgext/eol.py:0: | |
145 | > if ui.configbool('eol', 'fix-trailing-newline', False) and s and s[-1] != '\n': |
|
145 | > if ui.configbool('eol', 'fix-trailing-newline', False) and s and s[-1] != '\n': | |
146 | warning: line over 80 characters |
|
146 | warning: line over 80 characters | |
147 | warning: line over 80 characters |
|
147 | warning: line over 80 characters | |
148 | hgext/gpg.py:0: |
|
148 | hgext/gpg.py:0: | |
149 | > except: |
|
149 | > except: | |
150 | warning: naked except clause |
|
150 | warning: naked except clause | |
151 | hgext/hgcia.py:0: |
|
151 | hgext/hgcia.py:0: | |
152 | > except: |
|
152 | > except: | |
153 | warning: naked except clause |
|
153 | warning: naked except clause | |
154 | hgext/hgk.py:0: |
|
154 | hgext/hgk.py:0: | |
155 | > ui.write("%s%s\n" % (prefix, description.replace('\n', nlprefix).strip())) |
|
155 | > ui.write("%s%s\n" % (prefix, description.replace('\n', nlprefix).strip())) | |
156 | warning: line over 80 characters |
|
156 | warning: line over 80 characters | |
157 | hgext/hgk.py:0: |
|
157 | hgext/hgk.py:0: | |
158 | > ui.write("parent %s\n" % p) |
|
158 | > ui.write("parent %s\n" % p) | |
159 | warning: unwrapped ui message |
|
159 | warning: unwrapped ui message | |
160 | hgext/hgk.py:0: |
|
160 | hgext/hgk.py:0: | |
161 | > ui.write('k=%s\nv=%s\n' % (name, value)) |
|
161 | > ui.write('k=%s\nv=%s\n' % (name, value)) | |
162 | warning: unwrapped ui message |
|
162 | warning: unwrapped ui message | |
163 | hgext/hgk.py:0: |
|
163 | hgext/hgk.py:0: | |
164 | > ui.write("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1])) |
|
164 | > ui.write("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1])) | |
165 | warning: unwrapped ui message |
|
165 | warning: unwrapped ui message | |
166 | hgext/hgk.py:0: |
|
166 | hgext/hgk.py:0: | |
167 | > ui.write("branch %s\n\n" % ctx.branch()) |
|
167 | > ui.write("branch %s\n\n" % ctx.branch()) | |
168 | warning: unwrapped ui message |
|
168 | warning: unwrapped ui message | |
169 | hgext/hgk.py:0: |
|
169 | hgext/hgk.py:0: | |
170 | > ui.write("committer %s %s %s\n" % (committer, int(date[0]), date[1])) |
|
170 | > ui.write("committer %s %s %s\n" % (committer, int(date[0]), date[1])) | |
171 | warning: unwrapped ui message |
|
171 | warning: unwrapped ui message | |
172 | hgext/hgk.py:0: |
|
172 | hgext/hgk.py:0: | |
173 | > ui.write("revision %d\n" % ctx.rev()) |
|
173 | > ui.write("revision %d\n" % ctx.rev()) | |
174 | warning: unwrapped ui message |
|
174 | warning: unwrapped ui message | |
175 | hgext/hgk.py:0: |
|
175 | hgext/hgk.py:0: | |
176 | > ui.write("tree %s\n" % short(ctx.changeset()[0])) # use ctx.node() instead ?? |
|
176 | > ui.write("tree %s\n" % short(ctx.changeset()[0])) # use ctx.node() instead ?? | |
177 | warning: line over 80 characters |
|
177 | warning: line over 80 characters | |
178 | warning: unwrapped ui message |
|
178 | warning: unwrapped ui message | |
179 | hgext/highlight/__init__.py:0: |
|
179 | hgext/highlight/__init__.py:0: | |
180 | > extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight) |
|
180 | > extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight) | |
181 | warning: line over 80 characters |
|
181 | warning: line over 80 characters | |
182 | hgext/highlight/__init__.py:0: |
|
182 | hgext/highlight/__init__.py:0: | |
183 | > return ['/* pygments_style = %s */\n\n' % pg_style, fmter.get_style_defs('')] |
|
183 | > return ['/* pygments_style = %s */\n\n' % pg_style, fmter.get_style_defs('')] | |
184 | warning: line over 80 characters |
|
184 | warning: line over 80 characters | |
185 | hgext/inotify/__init__.py:0: |
|
185 | hgext/inotify/__init__.py:0: | |
186 | > if self._inotifyon and not ignored and not subrepos and not self._dirty: |
|
186 | > if self._inotifyon and not ignored and not subrepos and not self._dirty: | |
187 | warning: line over 80 characters |
|
187 | warning: line over 80 characters | |
188 | hgext/inotify/server.py:0: |
|
188 | hgext/inotify/server.py:0: | |
189 | > except: |
|
189 | > except: | |
190 | warning: naked except clause |
|
190 | warning: naked except clause | |
191 | hgext/inotify/server.py:0: |
|
191 | hgext/inotify/server.py:0: | |
192 | > except: |
|
192 | > except: | |
193 | warning: naked except clause |
|
193 | warning: naked except clause | |
194 | hgext/keyword.py:0: |
|
194 | hgext/keyword.py:0: | |
195 | > ui.note("hg ci -m '%s'\n" % msg) |
|
195 | > ui.note("hg ci -m '%s'\n" % msg) | |
196 | warning: unwrapped ui message |
|
196 | warning: unwrapped ui message | |
197 | hgext/mq.py:0: |
|
197 | hgext/mq.py:0: | |
198 | > raise util.Abort(_("cannot push --exact with applied patches")) |
|
198 | > raise util.Abort(_("cannot push --exact with applied patches")) | |
199 | warning: line over 80 characters |
|
199 | warning: line over 80 characters | |
200 | hgext/mq.py:0: |
|
200 | hgext/mq.py:0: | |
201 | > raise util.Abort(_("cannot use --exact and --move together")) |
|
201 | > raise util.Abort(_("cannot use --exact and --move together")) | |
202 | warning: line over 80 characters |
|
202 | warning: line over 80 characters | |
203 | hgext/mq.py:0: |
|
203 | hgext/mq.py:0: | |
204 | > self.ui.warn(_('Tag %s overrides mq patch of the same name\n') |
|
204 | > self.ui.warn(_('Tag %s overrides mq patch of the same name\n') | |
205 | warning: line over 80 characters |
|
205 | warning: line over 80 characters | |
206 | hgext/mq.py:0: |
|
206 | hgext/mq.py:0: | |
207 | > except: |
|
207 | > except: | |
208 | warning: naked except clause |
|
208 | warning: naked except clause | |
209 | warning: naked except clause |
|
209 | warning: naked except clause | |
210 | hgext/mq.py:0: |
|
210 | hgext/mq.py:0: | |
211 | > except: |
|
211 | > except: | |
212 | warning: naked except clause |
|
212 | warning: naked except clause | |
213 | warning: naked except clause |
|
213 | warning: naked except clause | |
214 | warning: naked except clause |
|
214 | warning: naked except clause | |
215 | warning: naked except clause |
|
215 | warning: naked except clause | |
216 | hgext/mq.py:0: |
|
216 | hgext/mq.py:0: | |
217 | > raise util.Abort(_('cannot mix -l/--list with options or arguments')) |
|
217 | > raise util.Abort(_('cannot mix -l/--list with options or arguments')) | |
218 | warning: line over 80 characters |
|
218 | warning: line over 80 characters | |
219 | hgext/mq.py:0: |
|
219 | hgext/mq.py:0: | |
220 | > raise util.Abort(_('qfold cannot fold already applied patch %s') % p) |
|
220 | > raise util.Abort(_('qfold cannot fold already applied patch %s') % p) | |
221 | warning: line over 80 characters |
|
221 | warning: line over 80 characters | |
222 | hgext/mq.py:0: |
|
222 | hgext/mq.py:0: | |
223 | > ('', 'move', None, _('reorder patch series and apply only the patch'))], |
|
223 | > ('', 'move', None, _('reorder patch series and apply only the patch'))], | |
224 | warning: line over 80 characters |
|
224 | warning: line over 80 characters | |
225 | hgext/mq.py:0: |
|
225 | hgext/mq.py:0: | |
226 | > ('U', 'noupdate', None, _('do not update the new working directories')), |
|
226 | > ('U', 'noupdate', None, _('do not update the new working directories')), | |
227 | warning: line over 80 characters |
|
227 | warning: line over 80 characters | |
228 | hgext/mq.py:0: |
|
228 | hgext/mq.py:0: | |
229 | > ('e', 'exact', None, _('apply the target patch to its recorded parent')), |
|
229 | > ('e', 'exact', None, _('apply the target patch to its recorded parent')), | |
230 | warning: line over 80 characters |
|
230 | warning: line over 80 characters | |
231 | hgext/mq.py:0: |
|
231 | hgext/mq.py:0: | |
232 | > except: |
|
232 | > except: | |
233 | warning: naked except clause |
|
233 | warning: naked except clause | |
234 | hgext/mq.py:0: |
|
234 | hgext/mq.py:0: | |
235 | > ui.write("mq: %s\n" % ', '.join(m)) |
|
235 | > ui.write("mq: %s\n" % ', '.join(m)) | |
236 | warning: unwrapped ui message |
|
236 | warning: unwrapped ui message | |
237 | hgext/mq.py:0: |
|
237 | hgext/mq.py:0: | |
238 | > repo.mq.qseries(repo, missing=opts.get('missing'), summary=opts.get('summary')) |
|
238 | > repo.mq.qseries(repo, missing=opts.get('missing'), summary=opts.get('summary')) | |
239 | warning: line over 80 characters |
|
239 | warning: line over 80 characters | |
240 | hgext/notify.py:0: |
|
240 | hgext/notify.py:0: | |
241 | > ui.note(_('notify: suppressing notification for merge %d:%s\n') % |
|
241 | > ui.note(_('notify: suppressing notification for merge %d:%s\n') % | |
242 | warning: line over 80 characters |
|
242 | warning: line over 80 characters | |
243 | hgext/patchbomb.py:0: |
|
243 | hgext/patchbomb.py:0: | |
244 | > binnode, seqno=idx, total=total) |
|
244 | > binnode, seqno=idx, total=total) | |
245 | warning: line over 80 characters |
|
245 | warning: line over 80 characters | |
246 | hgext/patchbomb.py:0: |
|
246 | hgext/patchbomb.py:0: | |
247 | > except: |
|
247 | > except: | |
248 | warning: naked except clause |
|
248 | warning: naked except clause | |
249 | hgext/patchbomb.py:0: |
|
249 | hgext/patchbomb.py:0: | |
250 | > ui.write('Subject: %s\n' % subj) |
|
250 | > ui.write('Subject: %s\n' % subj) | |
251 | warning: unwrapped ui message |
|
251 | warning: unwrapped ui message | |
252 | hgext/patchbomb.py:0: |
|
252 | hgext/patchbomb.py:0: | |
253 | > p = mail.mimetextpatch('\n'.join(patchlines), 'x-patch', opts.get('test')) |
|
253 | > p = mail.mimetextpatch('\n'.join(patchlines), 'x-patch', opts.get('test')) | |
254 | warning: line over 80 characters |
|
254 | warning: line over 80 characters | |
255 | hgext/patchbomb.py:0: |
|
255 | hgext/patchbomb.py:0: | |
256 | > ui.write('From: %s\n' % sender) |
|
256 | > ui.write('From: %s\n' % sender) | |
257 | warning: unwrapped ui message |
|
257 | warning: unwrapped ui message | |
258 | hgext/record.py:0: |
|
258 | hgext/record.py:0: | |
259 | > ignoreblanklines=opts.get('ignore_blank_lines')) |
|
259 | > ignoreblanklines=opts.get('ignore_blank_lines')) | |
260 | warning: line over 80 characters |
|
260 | warning: line over 80 characters | |
261 | hgext/record.py:0: |
|
261 | hgext/record.py:0: | |
262 | > ignorewsamount=opts.get('ignore_space_change'), |
|
262 | > ignorewsamount=opts.get('ignore_space_change'), | |
263 | warning: line over 80 characters |
|
263 | warning: line over 80 characters | |
264 | hgext/zeroconf/__init__.py:0: |
|
264 | hgext/zeroconf/__init__.py:0: | |
265 | > publish(name, desc, path, util.getport(u.config("web", "port", 8000))) |
|
265 | > publish(name, desc, path, util.getport(u.config("web", "port", 8000))) | |
266 | warning: line over 80 characters |
|
266 | warning: line over 80 characters | |
267 | hgext/zeroconf/__init__.py:0: |
|
267 | hgext/zeroconf/__init__.py:0: | |
268 | > except: |
|
268 | > except: | |
269 | warning: naked except clause |
|
269 | warning: naked except clause | |
270 | warning: naked except clause |
|
270 | warning: naked except clause | |
271 | mercurial/bundlerepo.py:0: |
|
271 | mercurial/bundlerepo.py:0: | |
272 | > is a bundlerepo for the obtained bundle when the original "other" is remote. |
|
272 | > is a bundlerepo for the obtained bundle when the original "other" is remote. | |
273 | warning: line over 80 characters |
|
273 | warning: line over 80 characters | |
274 | mercurial/bundlerepo.py:0: |
|
274 | mercurial/bundlerepo.py:0: | |
275 | > "local" is a local repo from which to obtain the actual incoming changesets; it |
|
275 | > "local" is a local repo from which to obtain the actual incoming changesets; it | |
276 | warning: line over 80 characters |
|
276 | warning: line over 80 characters | |
277 | mercurial/bundlerepo.py:0: |
|
277 | mercurial/bundlerepo.py:0: | |
278 | > tmp = discovery.findcommonincoming(repo, other, heads=onlyheads, force=force) |
|
278 | > tmp = discovery.findcommonincoming(repo, other, heads=onlyheads, force=force) | |
279 | warning: line over 80 characters |
|
279 | warning: line over 80 characters | |
280 | mercurial/commands.py:0: |
|
280 | mercurial/commands.py:0: | |
281 | > " size " + basehdr + " link p1 p2 nodeid\n") |
|
281 | > " size " + basehdr + " link p1 p2 nodeid\n") | |
282 | warning: line over 80 characters |
|
282 | warning: line over 80 characters | |
283 | mercurial/commands.py:0: |
|
283 | mercurial/commands.py:0: | |
284 | > raise util.Abort('cannot use localheads with old style discovery') |
|
284 | > raise util.Abort('cannot use localheads with old style discovery') | |
285 | warning: line over 80 characters |
|
285 | warning: line over 80 characters | |
286 | mercurial/commands.py:0: |
|
286 | mercurial/commands.py:0: | |
287 | > ui.note('branch %s\n' % data) |
|
287 | > ui.note('branch %s\n' % data) | |
288 | warning: unwrapped ui message |
|
288 | warning: unwrapped ui message | |
289 | mercurial/commands.py:0: |
|
289 | mercurial/commands.py:0: | |
290 | > ui.note('node %s\n' % str(data)) |
|
290 | > ui.note('node %s\n' % str(data)) | |
291 | warning: unwrapped ui message |
|
291 | warning: unwrapped ui message | |
292 | mercurial/commands.py:0: |
|
292 | mercurial/commands.py:0: | |
293 | > ui.note('tag %s\n' % name) |
|
293 | > ui.note('tag %s\n' % name) | |
294 | warning: unwrapped ui message |
|
294 | warning: unwrapped ui message | |
295 | mercurial/commands.py:0: |
|
295 | mercurial/commands.py:0: | |
296 | > ui.write("unpruned common: %s\n" % " ".join([short(n) |
|
296 | > ui.write("unpruned common: %s\n" % " ".join([short(n) | |
297 | warning: unwrapped ui message |
|
297 | warning: unwrapped ui message | |
298 | mercurial/commands.py:0: |
|
298 | mercurial/commands.py:0: | |
299 | > yield 'n', (r, list(set(p for p in cl.parentrevs(r) if p != -1))) |
|
299 | > yield 'n', (r, list(set(p for p in cl.parentrevs(r) if p != -1))) | |
300 | warning: line over 80 characters |
|
300 | warning: line over 80 characters | |
301 | mercurial/commands.py:0: |
|
301 | mercurial/commands.py:0: | |
302 | > yield 'n', (r, list(set(p for p in rlog.parentrevs(r) if p != -1))) |
|
302 | > yield 'n', (r, list(set(p for p in rlog.parentrevs(r) if p != -1))) | |
303 | warning: line over 80 characters |
|
303 | warning: line over 80 characters | |
304 | mercurial/commands.py:0: |
|
304 | mercurial/commands.py:0: | |
305 | > except: |
|
305 | > except: | |
306 | warning: naked except clause |
|
306 | warning: naked except clause | |
307 | mercurial/commands.py:0: |
|
307 | mercurial/commands.py:0: | |
308 | > ui.status(_("(run 'hg heads .' to see heads, 'hg merge' to merge)\n")) |
|
308 | > ui.status(_("(run 'hg heads .' to see heads, 'hg merge' to merge)\n")) | |
309 | warning: line over 80 characters |
|
309 | warning: line over 80 characters | |
310 | mercurial/commands.py:0: |
|
310 | mercurial/commands.py:0: | |
311 | > ui.write("format: id, p1, p2, cset, delta base, len(delta)\n") |
|
311 | > ui.write("format: id, p1, p2, cset, delta base, len(delta)\n") | |
312 | warning: unwrapped ui message |
|
312 | warning: unwrapped ui message | |
313 | mercurial/commands.py:0: |
|
313 | mercurial/commands.py:0: | |
314 | > ui.write("local is subset\n") |
|
314 | > ui.write("local is subset\n") | |
315 | warning: unwrapped ui message |
|
315 | warning: unwrapped ui message | |
316 | mercurial/commands.py:0: |
|
316 | mercurial/commands.py:0: | |
317 | > ui.write("remote is subset\n") |
|
317 | > ui.write("remote is subset\n") | |
318 | warning: unwrapped ui message |
|
318 | warning: unwrapped ui message | |
319 | mercurial/commands.py:0: |
|
319 | mercurial/commands.py:0: | |
320 | > ui.write(' other : ' + fmt2 % pcfmt(numoprev, numprev)) |
|
320 | > ui.write(' other : ' + fmt2 % pcfmt(numoprev, numprev)) | |
321 | warning: line over 80 characters |
|
321 | warning: line over 80 characters | |
322 | mercurial/commands.py:0: |
|
322 | mercurial/commands.py:0: | |
323 | > ui.write(' where prev = p1 : ' + fmt2 % pcfmt(nump1prev, numprev)) |
|
323 | > ui.write(' where prev = p1 : ' + fmt2 % pcfmt(nump1prev, numprev)) | |
324 | warning: line over 80 characters |
|
324 | warning: line over 80 characters | |
325 | mercurial/commands.py:0: |
|
325 | mercurial/commands.py:0: | |
326 | > ui.write(' where prev = p2 : ' + fmt2 % pcfmt(nump2prev, numprev)) |
|
326 | > ui.write(' where prev = p2 : ' + fmt2 % pcfmt(nump2prev, numprev)) | |
327 | warning: line over 80 characters |
|
327 | warning: line over 80 characters | |
328 | mercurial/commands.py:0: |
|
328 | mercurial/commands.py:0: | |
329 | > ui.write('deltas against other : ' + fmt % pcfmt(numother, numdeltas)) |
|
329 | > ui.write('deltas against other : ' + fmt % pcfmt(numother, numdeltas)) | |
330 | warning: line over 80 characters |
|
330 | warning: line over 80 characters | |
331 | warning: unwrapped ui message |
|
331 | warning: unwrapped ui message | |
332 | mercurial/commands.py:0: |
|
332 | mercurial/commands.py:0: | |
333 | > ui.write('deltas against p1 : ' + fmt % pcfmt(nump1, numdeltas)) |
|
333 | > ui.write('deltas against p1 : ' + fmt % pcfmt(nump1, numdeltas)) | |
334 | warning: unwrapped ui message |
|
334 | warning: unwrapped ui message | |
335 | mercurial/commands.py:0: |
|
335 | mercurial/commands.py:0: | |
336 | > ui.write('deltas against p2 : ' + fmt % pcfmt(nump2, numdeltas)) |
|
336 | > ui.write('deltas against p2 : ' + fmt % pcfmt(nump2, numdeltas)) | |
337 | warning: unwrapped ui message |
|
337 | warning: unwrapped ui message | |
338 | mercurial/commands.py:0: |
|
338 | mercurial/commands.py:0: | |
339 | > except: |
|
339 | > except: | |
340 | warning: naked except clause |
|
340 | warning: naked except clause | |
341 | mercurial/commands.py:0: |
|
341 | mercurial/commands.py:0: | |
342 | > revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev')) |
|
342 | > revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev')) | |
343 | warning: line over 80 characters |
|
343 | warning: line over 80 characters | |
344 | mercurial/commands.py:0: |
|
344 | mercurial/commands.py:0: | |
345 | > ui.write("common heads: %s\n" % " ".join([short(n) for n in common])) |
|
345 | > ui.write("common heads: %s\n" % " ".join([short(n) for n in common])) | |
346 | warning: unwrapped ui message |
|
346 | warning: unwrapped ui message | |
347 | mercurial/commands.py:0: |
|
347 | mercurial/commands.py:0: | |
348 | > ui.write("match: %s\n" % m(d[0])) |
|
348 | > ui.write("match: %s\n" % m(d[0])) | |
349 | warning: unwrapped ui message |
|
349 | warning: unwrapped ui message | |
350 | mercurial/commands.py:0: |
|
350 | mercurial/commands.py:0: | |
351 | > ui.write('deltas against prev : ' + fmt % pcfmt(numprev, numdeltas)) |
|
351 | > ui.write('deltas against prev : ' + fmt % pcfmt(numprev, numdeltas)) | |
352 | warning: unwrapped ui message |
|
352 | warning: unwrapped ui message | |
353 | mercurial/commands.py:0: |
|
353 | mercurial/commands.py:0: | |
354 | > ui.write('path %s\n' % k) |
|
354 | > ui.write('path %s\n' % k) | |
355 | warning: unwrapped ui message |
|
355 | warning: unwrapped ui message | |
356 | mercurial/commands.py:0: |
|
356 | mercurial/commands.py:0: | |
357 | > ui.write('uncompressed data size (min/max/avg) : %d / %d / %d\n' |
|
357 | > ui.write('uncompressed data size (min/max/avg) : %d / %d / %d\n' | |
358 | warning: unwrapped ui message |
|
358 | warning: unwrapped ui message | |
359 | mercurial/commands.py:0: |
|
359 | mercurial/commands.py:0: | |
360 | > Every ID must be a full-length hex node id string. Returns a list of 0s and 1s |
|
360 | > Every ID must be a full-length hex node id string. Returns a list of 0s and 1s | |
361 | warning: line over 80 characters |
|
361 | warning: line over 80 characters | |
362 | mercurial/commands.py:0: |
|
362 | mercurial/commands.py:0: | |
363 | > remoteurl, branches = hg.parseurl(ui.expandpath(remoteurl), opts.get('branch')) |
|
363 | > remoteurl, branches = hg.parseurl(ui.expandpath(remoteurl), opts.get('branch')) | |
364 | warning: line over 80 characters |
|
364 | warning: line over 80 characters | |
365 | mercurial/commands.py:0: |
|
365 | mercurial/commands.py:0: | |
366 | > ui.write("digraph G {\n") |
|
366 | > ui.write("digraph G {\n") | |
367 | warning: unwrapped ui message |
|
367 | warning: unwrapped ui message | |
368 | mercurial/commands.py:0: |
|
368 | mercurial/commands.py:0: | |
369 | > ui.write("internal: %s %s\n" % d) |
|
369 | > ui.write("internal: %s %s\n" % d) | |
370 | warning: unwrapped ui message |
|
370 | warning: unwrapped ui message | |
371 | mercurial/commands.py:0: |
|
371 | mercurial/commands.py:0: | |
372 | > ui.write("standard: %s\n" % util.datestr(d)) |
|
372 | > ui.write("standard: %s\n" % util.datestr(d)) | |
373 | warning: unwrapped ui message |
|
373 | warning: unwrapped ui message | |
374 | mercurial/commands.py:0: |
|
374 | mercurial/commands.py:0: | |
375 | > ui.write('avg chain length : ' + fmt % avgchainlen) |
|
375 | > ui.write('avg chain length : ' + fmt % avgchainlen) | |
376 | warning: unwrapped ui message |
|
376 | warning: unwrapped ui message | |
377 | mercurial/commands.py:0: |
|
377 | mercurial/commands.py:0: | |
378 | > ui.write('case-sensitive: %s\n' % (util.checkcase('.debugfsinfo') |
|
378 | > ui.write('case-sensitive: %s\n' % (util.checkcase('.debugfsinfo') | |
379 | warning: unwrapped ui message |
|
379 | warning: unwrapped ui message | |
380 | mercurial/commands.py:0: |
|
380 | mercurial/commands.py:0: | |
381 | > ui.write('compression ratio : ' + fmt % compratio) |
|
381 | > ui.write('compression ratio : ' + fmt % compratio) | |
382 | warning: unwrapped ui message |
|
382 | warning: unwrapped ui message | |
383 | mercurial/commands.py:0: |
|
383 | mercurial/commands.py:0: | |
384 | > ui.write('delta size (min/max/avg) : %d / %d / %d\n' |
|
384 | > ui.write('delta size (min/max/avg) : %d / %d / %d\n' | |
385 | warning: unwrapped ui message |
|
385 | warning: unwrapped ui message | |
386 | mercurial/commands.py:0: |
|
386 | mercurial/commands.py:0: | |
387 | > ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no')) |
|
387 | > ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no')) | |
388 | warning: unwrapped ui message |
|
388 | warning: unwrapped ui message | |
389 | mercurial/commands.py:0: |
|
389 | mercurial/commands.py:0: | |
390 | > ui.write('flags : %s\n' % ', '.join(flags)) |
|
390 | > ui.write('flags : %s\n' % ', '.join(flags)) | |
391 | warning: unwrapped ui message |
|
391 | warning: unwrapped ui message | |
392 | mercurial/commands.py:0: |
|
392 | mercurial/commands.py:0: | |
393 | > ui.write('format : %d\n' % format) |
|
393 | > ui.write('format : %d\n' % format) | |
394 | warning: unwrapped ui message |
|
394 | warning: unwrapped ui message | |
395 | mercurial/commands.py:0: |
|
395 | mercurial/commands.py:0: | |
396 | > ui.write('full revision size (min/max/avg) : %d / %d / %d\n' |
|
396 | > ui.write('full revision size (min/max/avg) : %d / %d / %d\n' | |
397 | warning: unwrapped ui message |
|
397 | warning: unwrapped ui message | |
398 | mercurial/commands.py:0: |
|
398 | mercurial/commands.py:0: | |
399 | > ui.write('revision size : ' + fmt2 % totalsize) |
|
399 | > ui.write('revision size : ' + fmt2 % totalsize) | |
400 | warning: unwrapped ui message |
|
400 | warning: unwrapped ui message | |
401 | mercurial/commands.py:0: |
|
401 | mercurial/commands.py:0: | |
402 | > ui.write('revisions : ' + fmt2 % numrevs) |
|
402 | > ui.write('revisions : ' + fmt2 % numrevs) | |
403 | warning: unwrapped ui message |
|
403 | warning: unwrapped ui message | |
404 | warning: unwrapped ui message |
|
404 | warning: unwrapped ui message | |
405 | mercurial/commands.py:0: |
|
405 | mercurial/commands.py:0: | |
406 | > ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) |
|
406 | > ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) | |
407 | warning: unwrapped ui message |
|
407 | warning: unwrapped ui message | |
408 | mercurial/commandserver.py:0: |
|
408 | mercurial/commandserver.py:0: | |
409 | > # the ui here is really the repo ui so take its baseui so we don't end up |
|
409 | > # the ui here is really the repo ui so take its baseui so we don't end up | |
410 | warning: line over 80 characters |
|
410 | warning: line over 80 characters | |
411 | mercurial/context.py:0: |
|
411 | mercurial/context.py:0: | |
412 | > return self._manifestdelta[path], self._manifestdelta.flags(path) |
|
412 | > return self._manifestdelta[path], self._manifestdelta.flags(path) | |
413 | warning: line over 80 characters |
|
413 | warning: line over 80 characters | |
414 | mercurial/dagparser.py:0: |
|
414 | mercurial/dagparser.py:0: | |
415 | > raise util.Abort(_("invalid character in dag description: %s...") % s) |
|
415 | > raise util.Abort(_("invalid character in dag description: %s...") % s) | |
416 | warning: line over 80 characters |
|
416 | warning: line over 80 characters | |
417 | mercurial/dagparser.py:0: |
|
417 | mercurial/dagparser.py:0: | |
418 | > >>> dagtext([('n', (0, [-1])), ('C', 'my command line'), ('n', (1, [0]))]) |
|
418 | > >>> dagtext([('n', (0, [-1])), ('C', 'my command line'), ('n', (1, [0]))]) | |
419 | warning: line over 80 characters |
|
419 | warning: line over 80 characters | |
420 | mercurial/dirstate.py:0: |
|
420 | mercurial/dirstate.py:0: | |
421 | > if not st is None and not getkind(st.st_mode) in (regkind, lnkkind): |
|
421 | > if not st is None and not getkind(st.st_mode) in (regkind, lnkkind): | |
422 | warning: line over 80 characters |
|
422 | warning: line over 80 characters | |
423 | mercurial/discovery.py:0: |
|
423 | mercurial/discovery.py:0: | |
424 | > If onlyheads is given, only nodes ancestral to nodes in onlyheads (inclusive) |
|
424 | > If onlyheads is given, only nodes ancestral to nodes in onlyheads (inclusive) | |
425 | warning: line over 80 characters |
|
425 | warning: line over 80 characters | |
426 | mercurial/discovery.py:0: |
|
426 | mercurial/discovery.py:0: | |
427 | > def findcommonoutgoing(repo, other, onlyheads=None, force=False, commoninc=None): |
|
427 | > def findcommonoutgoing(repo, other, onlyheads=None, force=False, commoninc=None): | |
428 | warning: line over 80 characters |
|
428 | warning: line over 80 characters | |
429 | mercurial/dispatch.py:0: |
|
429 | mercurial/dispatch.py:0: | |
430 | > " (.hg not found)") % os.getcwd()) |
|
430 | > " (.hg not found)") % os.getcwd()) | |
431 | warning: line over 80 characters |
|
431 | warning: line over 80 characters | |
432 | mercurial/dispatch.py:0: |
|
432 | mercurial/dispatch.py:0: | |
433 | > except: |
|
433 | > except: | |
434 | warning: naked except clause |
|
434 | warning: naked except clause | |
435 | mercurial/dispatch.py:0: |
|
435 | mercurial/dispatch.py:0: | |
436 | > return lambda: runcommand(lui, None, cmd, args[:1], ui, options, d, [], {}) |
|
436 | > return lambda: runcommand(lui, None, cmd, args[:1], ui, options, d, [], {}) | |
437 | warning: line over 80 characters |
|
437 | warning: line over 80 characters | |
438 | mercurial/dispatch.py:0: |
|
438 | mercurial/dispatch.py:0: | |
439 | > def __init__(self, args, ui=None, repo=None, fin=None, fout=None, ferr=None): |
|
439 | > def __init__(self, args, ui=None, repo=None, fin=None, fout=None, ferr=None): | |
440 | warning: line over 80 characters |
|
440 | warning: line over 80 characters | |
441 | mercurial/dispatch.py:0: |
|
441 | mercurial/dispatch.py:0: | |
442 | > except: |
|
442 | > except: | |
443 | warning: naked except clause |
|
443 | warning: naked except clause | |
444 | mercurial/hg.py:0: |
|
444 | mercurial/hg.py:0: | |
445 | > except: |
|
445 | > except: | |
446 | warning: naked except clause |
|
446 | warning: naked except clause | |
447 | mercurial/hgweb/hgweb_mod.py:0: |
|
447 | mercurial/hgweb/hgweb_mod.py:0: | |
448 | > self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) |
|
448 | > self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) | |
449 | warning: line over 80 characters |
|
449 | warning: line over 80 characters | |
450 | mercurial/keepalive.py:0: |
|
450 | mercurial/keepalive.py:0: | |
451 | > except: |
|
451 | > except: | |
452 | warning: naked except clause |
|
452 | warning: naked except clause | |
453 | mercurial/keepalive.py:0: |
|
453 | mercurial/keepalive.py:0: | |
454 | > except: |
|
454 | > except: | |
455 | warning: naked except clause |
|
455 | warning: naked except clause | |
456 | mercurial/localrepo.py:0: |
|
456 | mercurial/localrepo.py:0: | |
457 | > # we return an integer indicating remote head count change |
|
457 | > # we return an integer indicating remote head count change | |
458 | warning: line over 80 characters |
|
458 | warning: line over 80 characters | |
459 | mercurial/localrepo.py:0: |
|
459 | mercurial/localrepo.py:0: | |
460 | > raise util.Abort(_("empty or missing revlog for %s") % fname) |
|
460 | > raise util.Abort(_("empty or missing revlog for %s") % fname) | |
461 | warning: line over 80 characters |
|
461 | warning: line over 80 characters | |
462 | warning: line over 80 characters |
|
462 | warning: line over 80 characters | |
463 | mercurial/localrepo.py:0: |
|
463 | mercurial/localrepo.py:0: | |
464 | > if self._tagscache.tagtypes and name in self._tagscache.tagtypes: |
|
464 | > if self._tagscache.tagtypes and name in self._tagscache.tagtypes: | |
465 | warning: line over 80 characters |
|
465 | warning: line over 80 characters | |
466 | mercurial/localrepo.py:0: |
|
466 | mercurial/localrepo.py:0: | |
467 | > self.hook("precommit", throw=True, parent1=hookp1, parent2=hookp2) |
|
467 | > self.hook("precommit", throw=True, parent1=hookp1, parent2=hookp2) | |
468 | warning: line over 80 characters |
|
468 | warning: line over 80 characters | |
469 | mercurial/localrepo.py:0: |
|
469 | mercurial/localrepo.py:0: | |
470 | > # new requirements = old non-format requirements + new format-related |
|
470 | > # new requirements = old non-format requirements + new format-related | |
471 | warning: line over 80 characters |
|
471 | warning: line over 80 characters | |
472 | mercurial/localrepo.py:0: |
|
472 | mercurial/localrepo.py:0: | |
473 | > except: |
|
473 | > except: | |
474 | warning: naked except clause |
|
474 | warning: naked except clause | |
475 | mercurial/localrepo.py:0: |
|
475 | mercurial/localrepo.py:0: | |
476 | > """return status of files between two nodes or node and working directory |
|
476 | > """return status of files between two nodes or node and working directory | |
477 | warning: line over 80 characters |
|
477 | warning: line over 80 characters | |
478 | mercurial/localrepo.py:0: |
|
478 | mercurial/localrepo.py:0: | |
479 | > '''Returns a tagscache object that contains various tags related caches.''' |
|
479 | > '''Returns a tagscache object that contains various tags related caches.''' | |
480 | warning: line over 80 characters |
|
480 | warning: line over 80 characters | |
481 | mercurial/manifest.py:0: |
|
481 | mercurial/manifest.py:0: | |
482 | > return "".join(struct.pack(">lll", start, end, len(content)) + content |
|
482 | > return "".join(struct.pack(">lll", start, end, len(content)) + content | |
483 | warning: line over 80 characters |
|
483 | warning: line over 80 characters | |
484 | mercurial/merge.py:0: |
|
484 | mercurial/merge.py:0: | |
485 | > subrepo.submerge(repo, wctx, mctx, wctx.ancestor(mctx), overwrite) |
|
485 | > subrepo.submerge(repo, wctx, mctx, wctx.ancestor(mctx), overwrite) | |
486 | warning: line over 80 characters |
|
486 | warning: line over 80 characters | |
487 | mercurial/patch.py:0: |
|
487 | mercurial/patch.py:0: | |
488 | > modified, added, removed, copy, getfilectx, opts, losedata, prefix) |
|
488 | > modified, added, removed, copy, getfilectx, opts, losedata, prefix) | |
489 | warning: line over 80 characters |
|
489 | warning: line over 80 characters | |
490 | mercurial/patch.py:0: |
|
490 | mercurial/patch.py:0: | |
491 | > diffhelpers.addlines(lr, self.hunk, self.lena, self.lenb, self.a, self.b) |
|
491 | > diffhelpers.addlines(lr, self.hunk, self.lena, self.lenb, self.a, self.b) | |
492 | warning: line over 80 characters |
|
492 | warning: line over 80 characters | |
493 | mercurial/patch.py:0: |
|
493 | mercurial/patch.py:0: | |
494 | > output.append(_(' %d files changed, %d insertions(+), %d deletions(-)\n') |
|
494 | > output.append(_(' %d files changed, %d insertions(+), %d deletions(-)\n') | |
495 | warning: line over 80 characters |
|
495 | warning: line over 80 characters | |
496 | mercurial/patch.py:0: |
|
496 | mercurial/patch.py:0: | |
497 | > except: |
|
497 | > except: | |
498 | warning: naked except clause |
|
498 | warning: naked except clause | |
499 | mercurial/pure/base85.py:0: |
|
|||
500 | > raise OverflowError('Base85 overflow in hunk starting at byte %d' % i) |
|
|||
501 | warning: line over 80 characters |
|
|||
502 | mercurial/pure/mpatch.py:0: |
|
499 | mercurial/pure/mpatch.py:0: | |
503 | > frags.extend(reversed(new)) # what was left at the end |
|
500 | > frags.extend(reversed(new)) # what was left at the end | |
504 | warning: line over 80 characters |
|
501 | warning: line over 80 characters | |
505 | mercurial/repair.py:0: |
|
502 | mercurial/repair.py:0: | |
506 | > except: |
|
503 | > except: | |
507 | warning: naked except clause |
|
504 | warning: naked except clause | |
508 | mercurial/repair.py:0: |
|
505 | mercurial/repair.py:0: | |
509 | > except: |
|
506 | > except: | |
510 | warning: naked except clause |
|
507 | warning: naked except clause | |
511 | mercurial/revset.py:0: |
|
508 | mercurial/revset.py:0: | |
512 | > elif c.isalnum() or c in '._' or ord(c) > 127: # gather up a symbol/keyword |
|
509 | > elif c.isalnum() or c in '._' or ord(c) > 127: # gather up a symbol/keyword | |
513 | warning: line over 80 characters |
|
510 | warning: line over 80 characters | |
514 | mercurial/revset.py:0: |
|
511 | mercurial/revset.py:0: | |
515 | > Changesets that are the Nth ancestor (first parents only) of a changeset in set. |
|
512 | > Changesets that are the Nth ancestor (first parents only) of a changeset in set. | |
516 | warning: line over 80 characters |
|
513 | warning: line over 80 characters | |
517 | mercurial/scmutil.py:0: |
|
514 | mercurial/scmutil.py:0: | |
518 | > raise util.Abort(_("path '%s' is inside nested repo %r") % |
|
515 | > raise util.Abort(_("path '%s' is inside nested repo %r") % | |
519 | warning: line over 80 characters |
|
516 | warning: line over 80 characters | |
520 | mercurial/scmutil.py:0: |
|
517 | mercurial/scmutil.py:0: | |
521 | > "requires features '%s' (upgrade Mercurial)") % "', '".join(missings)) |
|
518 | > "requires features '%s' (upgrade Mercurial)") % "', '".join(missings)) | |
522 | warning: line over 80 characters |
|
519 | warning: line over 80 characters | |
523 | mercurial/scmutil.py:0: |
|
520 | mercurial/scmutil.py:0: | |
524 | > elif repo.dirstate[abs] != 'r' and (not good or not os.path.lexists(target) |
|
521 | > elif repo.dirstate[abs] != 'r' and (not good or not os.path.lexists(target) | |
525 | warning: line over 80 characters |
|
522 | warning: line over 80 characters | |
526 | mercurial/setdiscovery.py:0: |
|
523 | mercurial/setdiscovery.py:0: | |
527 | > # treat remote heads (and maybe own heads) as a first implicit sample response |
|
524 | > # treat remote heads (and maybe own heads) as a first implicit sample response | |
528 | warning: line over 80 characters |
|
525 | warning: line over 80 characters | |
529 | mercurial/setdiscovery.py:0: |
|
526 | mercurial/setdiscovery.py:0: | |
530 | > undecided = dag.nodeset() # own nodes where I don't know if remote knows them |
|
527 | > undecided = dag.nodeset() # own nodes where I don't know if remote knows them | |
531 | warning: line over 80 characters |
|
528 | warning: line over 80 characters | |
532 | mercurial/similar.py:0: |
|
529 | mercurial/similar.py:0: | |
533 | > repo.ui.progress(_('searching for similar files'), i, total=len(removed)) |
|
530 | > repo.ui.progress(_('searching for similar files'), i, total=len(removed)) | |
534 | warning: line over 80 characters |
|
531 | warning: line over 80 characters | |
535 | mercurial/simplemerge.py:0: |
|
532 | mercurial/simplemerge.py:0: | |
536 | > for zmatch, zend, amatch, aend, bmatch, bend in self.find_sync_regions(): |
|
533 | > for zmatch, zend, amatch, aend, bmatch, bend in self.find_sync_regions(): | |
537 | warning: line over 80 characters |
|
534 | warning: line over 80 characters | |
538 | mercurial/sshrepo.py:0: |
|
535 | mercurial/sshrepo.py:0: | |
539 | > self._abort(error.RepoError(_("no suitable response from remote hg"))) |
|
536 | > self._abort(error.RepoError(_("no suitable response from remote hg"))) | |
540 | warning: line over 80 characters |
|
537 | warning: line over 80 characters | |
541 | mercurial/sshrepo.py:0: |
|
538 | mercurial/sshrepo.py:0: | |
542 | > except: |
|
539 | > except: | |
543 | warning: naked except clause |
|
540 | warning: naked except clause | |
544 | mercurial/subrepo.py:0: |
|
541 | mercurial/subrepo.py:0: | |
545 | > other, self._repo = hg.clone(self._repo._subparent.ui, {}, other, |
|
542 | > other, self._repo = hg.clone(self._repo._subparent.ui, {}, other, | |
546 | warning: line over 80 characters |
|
543 | warning: line over 80 characters | |
547 | mercurial/subrepo.py:0: |
|
544 | mercurial/subrepo.py:0: | |
548 | > msg = (_(' subrepository sources for %s differ (in checked out version)\n' |
|
545 | > msg = (_(' subrepository sources for %s differ (in checked out version)\n' | |
549 | warning: line over 80 characters |
|
546 | warning: line over 80 characters | |
550 | mercurial/transaction.py:0: |
|
547 | mercurial/transaction.py:0: | |
551 | > except: |
|
548 | > except: | |
552 | warning: naked except clause |
|
549 | warning: naked except clause | |
553 | mercurial/ui.py:0: |
|
550 | mercurial/ui.py:0: | |
554 | > traceback.print_exception(exc[0], exc[1], exc[2], file=self.ferr) |
|
551 | > traceback.print_exception(exc[0], exc[1], exc[2], file=self.ferr) | |
555 | warning: line over 80 characters |
|
552 | warning: line over 80 characters | |
556 | mercurial/url.py:0: |
|
553 | mercurial/url.py:0: | |
557 | > conn = httpsconnection(host, port, keyfile, certfile, *args, **kwargs) |
|
554 | > conn = httpsconnection(host, port, keyfile, certfile, *args, **kwargs) | |
558 | warning: line over 80 characters |
|
555 | warning: line over 80 characters | |
559 | mercurial/util.py:0: |
|
556 | mercurial/util.py:0: | |
560 | > except: |
|
557 | > except: | |
561 | warning: naked except clause |
|
558 | warning: naked except clause | |
562 | mercurial/util.py:0: |
|
559 | mercurial/util.py:0: | |
563 | > except: |
|
560 | > except: | |
564 | warning: naked except clause |
|
561 | warning: naked except clause | |
565 | mercurial/verify.py:0: |
|
562 | mercurial/verify.py:0: | |
566 | > except: |
|
563 | > except: | |
567 | warning: naked except clause |
|
564 | warning: naked except clause | |
568 | mercurial/verify.py:0: |
|
565 | mercurial/verify.py:0: | |
569 | > except: |
|
566 | > except: | |
570 | warning: naked except clause |
|
567 | warning: naked except clause | |
571 | mercurial/wireproto.py:0: |
|
568 | mercurial/wireproto.py:0: | |
572 | > # Assuming the future to be filled with the result from the batched request |
|
569 | > # Assuming the future to be filled with the result from the batched request | |
573 | warning: line over 80 characters |
|
570 | warning: line over 80 characters | |
574 | mercurial/wireproto.py:0: |
|
571 | mercurial/wireproto.py:0: | |
575 | > '''remote must support _submitbatch(encbatch) and _submitone(op, encargs)''' |
|
572 | > '''remote must support _submitbatch(encbatch) and _submitone(op, encargs)''' | |
576 | warning: line over 80 characters |
|
573 | warning: line over 80 characters | |
577 | mercurial/wireproto.py:0: |
|
574 | mercurial/wireproto.py:0: | |
578 | > All methods invoked on instances of this class are simply queued and return a |
|
575 | > All methods invoked on instances of this class are simply queued and return a | |
579 | warning: line over 80 characters |
|
576 | warning: line over 80 characters | |
580 | mercurial/wireproto.py:0: |
|
577 | mercurial/wireproto.py:0: | |
581 | > The decorator returns a function which wraps this coroutine as a plain method, |
|
578 | > The decorator returns a function which wraps this coroutine as a plain method, | |
582 | warning: line over 80 characters |
|
579 | warning: line over 80 characters | |
583 | setup.py:0: |
|
580 | setup.py:0: | |
584 | > raise SystemExit("Python headers are required to build Mercurial") |
|
581 | > raise SystemExit("Python headers are required to build Mercurial") | |
585 | warning: line over 80 characters |
|
582 | warning: line over 80 characters | |
586 | setup.py:0: |
|
583 | setup.py:0: | |
587 | > except: |
|
584 | > except: | |
588 | warning: naked except clause |
|
585 | warning: naked except clause | |
589 | setup.py:0: |
|
586 | setup.py:0: | |
590 | > # build_py), it will not find osutil & friends, thinking that those modules are |
|
587 | > # build_py), it will not find osutil & friends, thinking that those modules are | |
591 | warning: line over 80 characters |
|
588 | warning: line over 80 characters | |
592 | setup.py:0: |
|
589 | setup.py:0: | |
593 | > except: |
|
590 | > except: | |
594 | warning: naked except clause |
|
591 | warning: naked except clause | |
595 | warning: naked except clause |
|
592 | warning: naked except clause | |
596 | setup.py:0: |
|
593 | setup.py:0: | |
597 | > isironpython = platform.python_implementation().lower().find("ironpython") != -1 |
|
594 | > isironpython = platform.python_implementation().lower().find("ironpython") != -1 | |
598 | warning: line over 80 characters |
|
595 | warning: line over 80 characters | |
599 | setup.py:0: |
|
596 | setup.py:0: | |
600 | > except: |
|
597 | > except: | |
601 | warning: naked except clause |
|
598 | warning: naked except clause | |
602 | warning: naked except clause |
|
599 | warning: naked except clause | |
603 | warning: naked except clause |
|
600 | warning: naked except clause | |
604 | tests/autodiff.py:0: |
|
601 | tests/autodiff.py:0: | |
605 | > ui.write('data lost for: %s\n' % fn) |
|
602 | > ui.write('data lost for: %s\n' % fn) | |
606 | warning: unwrapped ui message |
|
603 | warning: unwrapped ui message | |
607 | tests/run-tests.py:0: |
|
604 | tests/run-tests.py:0: | |
608 | > except: |
|
605 | > except: | |
609 | warning: naked except clause |
|
606 | warning: naked except clause | |
610 | tests/test-commandserver.py:0: |
|
607 | tests/test-commandserver.py:0: | |
611 | > 'hooks.pre-identify=python:test-commandserver.hook', 'id'], |
|
608 | > 'hooks.pre-identify=python:test-commandserver.hook', 'id'], | |
612 | warning: line over 80 characters |
|
609 | warning: line over 80 characters | |
613 | tests/test-commandserver.py:0: |
|
610 | tests/test-commandserver.py:0: | |
614 | > # the cached repo local hgrc contains ui.foo=bar, so showconfig should show it |
|
611 | > # the cached repo local hgrc contains ui.foo=bar, so showconfig should show it | |
615 | warning: line over 80 characters |
|
612 | warning: line over 80 characters | |
616 | tests/test-commandserver.py:0: |
|
613 | tests/test-commandserver.py:0: | |
617 | > print '%c, %r' % (ch, re.sub('encoding: [a-zA-Z0-9-]+', 'encoding: ***', data)) |
|
614 | > print '%c, %r' % (ch, re.sub('encoding: [a-zA-Z0-9-]+', 'encoding: ***', data)) | |
618 | warning: line over 80 characters |
|
615 | warning: line over 80 characters | |
619 | tests/test-filecache.py:0: |
|
616 | tests/test-filecache.py:0: | |
620 | > except: |
|
617 | > except: | |
621 | warning: naked except clause |
|
618 | warning: naked except clause | |
622 | tests/test-filecache.py:0: |
|
619 | tests/test-filecache.py:0: | |
623 | > if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'], 'cacheable']): |
|
620 | > if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'], 'cacheable']): | |
624 | warning: line over 80 characters |
|
621 | warning: line over 80 characters | |
625 | tests/test-ui-color.py:0: |
|
622 | tests/test-ui-color.py:0: | |
626 | > testui.warn('warning\n') |
|
623 | > testui.warn('warning\n') | |
627 | warning: unwrapped ui message |
|
624 | warning: unwrapped ui message | |
628 | tests/test-ui-color.py:0: |
|
625 | tests/test-ui-color.py:0: | |
629 | > testui.write('buffered\n') |
|
626 | > testui.write('buffered\n') | |
630 | warning: unwrapped ui message |
|
627 | warning: unwrapped ui message | |
631 | tests/test-walkrepo.py:0: |
|
628 | tests/test-walkrepo.py:0: | |
632 | > print "Found %d repositories when I should have found 2" % (len(reposet),) |
|
629 | > print "Found %d repositories when I should have found 2" % (len(reposet),) | |
633 | warning: line over 80 characters |
|
630 | warning: line over 80 characters | |
634 | tests/test-walkrepo.py:0: |
|
631 | tests/test-walkrepo.py:0: | |
635 | > print "Found %d repositories when I should have found 3" % (len(reposet),) |
|
632 | > print "Found %d repositories when I should have found 3" % (len(reposet),) | |
636 | warning: line over 80 characters |
|
633 | warning: line over 80 characters |
General Comments 0
You need to be logged in to leave comments.
Login now