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