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