##// END OF EJS Templates
i18n: wrap false positives for translation detection
Matt Mackall -
r17956:a08775ec default
parent child Browse files
Show More
@@ -801,22 +801,22 b' def debugcvsps(ui, *args, **opts):'
801 # Note: trailing spaces on several lines here are needed to have
801 # Note: trailing spaces on several lines here are needed to have
802 # bug-for-bug compatibility with cvsps.
802 # bug-for-bug compatibility with cvsps.
803 ui.write('---------------------\n')
803 ui.write('---------------------\n')
804 ui.write('PatchSet %d \n' % cs.id)
804 ui.write(('PatchSet %d \n' % cs.id))
805 ui.write('Date: %s\n' % util.datestr(cs.date,
805 ui.write(('Date: %s\n' % util.datestr(cs.date,
806 '%Y/%m/%d %H:%M:%S %1%2'))
806 '%Y/%m/%d %H:%M:%S %1%2')))
807 ui.write('Author: %s\n' % cs.author)
807 ui.write(('Author: %s\n' % cs.author))
808 ui.write('Branch: %s\n' % (cs.branch or 'HEAD'))
808 ui.write(('Branch: %s\n' % (cs.branch or 'HEAD')))
809 ui.write('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1],
809 ui.write(('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1],
810 ','.join(cs.tags) or '(none)'))
810 ','.join(cs.tags) or '(none)')))
811 branchpoints = getattr(cs, 'branchpoints', None)
811 branchpoints = getattr(cs, 'branchpoints', None)
812 if branchpoints:
812 if branchpoints:
813 ui.write('Branchpoints: %s \n' % ', '.join(branchpoints))
813 ui.write(('Branchpoints: %s \n' % ', '.join(branchpoints)))
814 if opts["parents"] and cs.parents:
814 if opts["parents"] and cs.parents:
815 if len(cs.parents) > 1:
815 if len(cs.parents) > 1:
816 ui.write('Parents: %s\n' %
816 ui.write(('Parents: %s\n' %
817 (','.join([str(p.id) for p in cs.parents])))
817 (','.join([str(p.id) for p in cs.parents]))))
818 else:
818 else:
819 ui.write('Parent: %d\n' % cs.parents[0].id)
819 ui.write(('Parent: %d\n' % cs.parents[0].id))
820
820
821 if opts["ancestors"]:
821 if opts["ancestors"]:
822 b = cs.branch
822 b = cs.branch
@@ -825,11 +825,11 b' def debugcvsps(ui, *args, **opts):'
825 b, c = ancestors[b]
825 b, c = ancestors[b]
826 r.append('%s:%d:%d' % (b or "HEAD", c, branches[b]))
826 r.append('%s:%d:%d' % (b or "HEAD", c, branches[b]))
827 if r:
827 if r:
828 ui.write('Ancestors: %s\n' % (','.join(r)))
828 ui.write(('Ancestors: %s\n' % (','.join(r))))
829
829
830 ui.write('Log:\n')
830 ui.write(('Log:\n'))
831 ui.write('%s\n\n' % cs.comment)
831 ui.write('%s\n\n' % cs.comment)
832 ui.write('Members: \n')
832 ui.write(('Members: \n'))
833 for f in cs.entries:
833 for f in cs.entries:
834 fn = f.file
834 fn = f.file
835 if fn.startswith(opts["prefix"]):
835 if fn.startswith(opts["prefix"]):
@@ -98,9 +98,9 b' def catcommit(ui, repo, n, prefix, ctx=N'
98 if ctx is None:
98 if ctx is None:
99 ctx = repo[n]
99 ctx = repo[n]
100 # use ctx.node() instead ??
100 # use ctx.node() instead ??
101 ui.write("tree %s\n" % short(ctx.changeset()[0]))
101 ui.write(("tree %s\n" % short(ctx.changeset()[0])))
102 for p in ctx.parents():
102 for p in ctx.parents():
103 ui.write("parent %s\n" % p)
103 ui.write(("parent %s\n" % p))
104
104
105 date = ctx.date()
105 date = ctx.date()
106 description = ctx.description().replace("\0", "")
106 description = ctx.description().replace("\0", "")
@@ -110,10 +110,10 b' def catcommit(ui, repo, n, prefix, ctx=N'
110 else:
110 else:
111 committer = ctx.user()
111 committer = ctx.user()
112
112
113 ui.write("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1]))
113 ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1])))
114 ui.write("committer %s %s %s\n" % (committer, int(date[0]), date[1]))
114 ui.write(("committer %s %s %s\n" % (committer, int(date[0]), date[1])))
115 ui.write("revision %d\n" % ctx.rev())
115 ui.write(("revision %d\n" % ctx.rev()))
116 ui.write("branch %s\n\n" % ctx.branch())
116 ui.write(("branch %s\n\n" % ctx.branch()))
117
117
118 if prefix != "":
118 if prefix != "":
119 ui.write("%s%s\n" % (prefix,
119 ui.write("%s%s\n" % (prefix,
@@ -302,7 +302,7 b' def revlist(ui, repo, *revs, **opts):'
302 def config(ui, repo, **opts):
302 def config(ui, repo, **opts):
303 """print extension options"""
303 """print extension options"""
304 def writeopt(name, value):
304 def writeopt(name, value):
305 ui.write('k=%s\nv=%s\n' % (name, value))
305 ui.write(('k=%s\nv=%s\n' % (name, value)))
306
306
307 writeopt('vdiff', ui.config('hgk', 'vdiff', ''))
307 writeopt('vdiff', ui.config('hgk', 'vdiff', ''))
308
308
@@ -474,11 +474,11 b' def patchbomb(ui, repo, *revs, **opts):'
474
474
475 if opts.get('diffstat') or opts.get('confirm'):
475 if opts.get('diffstat') or opts.get('confirm'):
476 ui.write(_('\nFinal summary:\n\n'))
476 ui.write(_('\nFinal summary:\n\n'))
477 ui.write('From: %s\n' % sender)
477 ui.write(('From: %s\n' % sender))
478 for addr in showaddrs:
478 for addr in showaddrs:
479 ui.write('%s\n' % addr)
479 ui.write('%s\n' % addr)
480 for m, subj, ds in msgs:
480 for m, subj, ds in msgs:
481 ui.write('Subject: %s\n' % subj)
481 ui.write(('Subject: %s\n' % subj))
482 if ds:
482 if ds:
483 ui.write(ds)
483 ui.write(ds)
484 ui.write('\n')
484 ui.write('\n')
@@ -1513,7 +1513,7 b' def debugbuilddag(ui, repo, text=None,'
1513 ui.progress(_('building'), id, unit=_('revisions'), total=total)
1513 ui.progress(_('building'), id, unit=_('revisions'), total=total)
1514 for type, data in dagparser.parsedag(text):
1514 for type, data in dagparser.parsedag(text):
1515 if type == 'n':
1515 if type == 'n':
1516 ui.note('node %s\n' % str(data))
1516 ui.note(('node %s\n' % str(data)))
1517 id, ps = data
1517 id, ps = data
1518
1518
1519 files = []
1519 files = []
@@ -1574,10 +1574,10 b' def debugbuilddag(ui, repo, text=None,'
1574 at = id
1574 at = id
1575 elif type == 'l':
1575 elif type == 'l':
1576 id, name = data
1576 id, name = data
1577 ui.note('tag %s\n' % name)
1577 ui.note(('tag %s\n' % name))
1578 tags.append("%s %s\n" % (hex(repo.changelog.node(id)), name))
1578 tags.append("%s %s\n" % (hex(repo.changelog.node(id)), name))
1579 elif type == 'a':
1579 elif type == 'a':
1580 ui.note('branch %s\n' % data)
1580 ui.note(('branch %s\n' % data))
1581 atbranch = data
1581 atbranch = data
1582 ui.progress(_('building'), id, unit=_('revisions'), total=total)
1582 ui.progress(_('building'), id, unit=_('revisions'), total=total)
1583 tr.close()
1583 tr.close()
@@ -1595,7 +1595,7 b' def debugbundle(ui, bundlepath, all=None'
1595 try:
1595 try:
1596 gen = changegroup.readbundle(f, bundlepath)
1596 gen = changegroup.readbundle(f, bundlepath)
1597 if all:
1597 if all:
1598 ui.write("format: id, p1, p2, cset, delta base, len(delta)\n")
1598 ui.write(("format: id, p1, p2, cset, delta base, len(delta)\n"))
1599
1599
1600 def showchunks(named):
1600 def showchunks(named):
1601 ui.write("\n%s\n" % named)
1601 ui.write("\n%s\n" % named)
@@ -1787,11 +1787,11 b' def debugdate(ui, date, range=None, **op'
1787 d = util.parsedate(date, util.extendeddateformats)
1787 d = util.parsedate(date, util.extendeddateformats)
1788 else:
1788 else:
1789 d = util.parsedate(date)
1789 d = util.parsedate(date)
1790 ui.write("internal: %s %s\n" % d)
1790 ui.write(("internal: %s %s\n") % d)
1791 ui.write("standard: %s\n" % util.datestr(d))
1791 ui.write(("standard: %s\n") % util.datestr(d))
1792 if range:
1792 if range:
1793 m = util.matchdate(range)
1793 m = util.matchdate(range)
1794 ui.write("match: %s\n" % m(d[0]))
1794 ui.write(("match: %s\n") % m(d[0]))
1795
1795
1796 @command('debugdiscovery',
1796 @command('debugdiscovery',
1797 [('', 'old', None, _('use old-style discovery')),
1797 [('', 'old', None, _('use old-style discovery')),
@@ -1821,7 +1821,7 b' def debugdiscovery(ui, repo, remoteurl="'
1821 force=True)
1821 force=True)
1822 common = set(common)
1822 common = set(common)
1823 if not opts.get('nonheads'):
1823 if not opts.get('nonheads'):
1824 ui.write("unpruned common: %s\n" % " ".join([short(n)
1824 ui.write(("unpruned common: %s\n") % " ".join([short(n)
1825 for n in common]))
1825 for n in common]))
1826 dag = dagutil.revlogdag(repo.changelog)
1826 dag = dagutil.revlogdag(repo.changelog)
1827 all = dag.ancestorset(dag.internalizeall(common))
1827 all = dag.ancestorset(dag.internalizeall(common))
@@ -1831,11 +1831,11 b' def debugdiscovery(ui, repo, remoteurl="'
1831 common = set(common)
1831 common = set(common)
1832 rheads = set(hds)
1832 rheads = set(hds)
1833 lheads = set(repo.heads())
1833 lheads = set(repo.heads())
1834 ui.write("common heads: %s\n" % " ".join([short(n) for n in common]))
1834 ui.write(("common heads: %s\n") % " ".join([short(n) for n in common]))
1835 if lheads <= common:
1835 if lheads <= common:
1836 ui.write("local is subset\n")
1836 ui.write(("local is subset\n"))
1837 elif rheads <= common:
1837 elif rheads <= common:
1838 ui.write("remote is subset\n")
1838 ui.write(("remote is subset\n"))
1839
1839
1840 serverlogs = opts.get('serverlog')
1840 serverlogs = opts.get('serverlog')
1841 if serverlogs:
1841 if serverlogs:
@@ -1879,9 +1879,9 b' def debugfileset(ui, repo, expr, **opts)'
1879 def debugfsinfo(ui, path = "."):
1879 def debugfsinfo(ui, path = "."):
1880 """show information detected about current filesystem"""
1880 """show information detected about current filesystem"""
1881 util.writefile('.debugfsinfo', '')
1881 util.writefile('.debugfsinfo', '')
1882 ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no'))
1882 ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no'))
1883 ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no'))
1883 ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no'))
1884 ui.write('case-sensitive: %s\n' % (util.checkcase('.debugfsinfo')
1884 ui.write(('case-sensitive: %s\n') % (util.checkcase('.debugfsinfo')
1885 and 'yes' or 'no'))
1885 and 'yes' or 'no'))
1886 os.unlink('.debugfsinfo')
1886 os.unlink('.debugfsinfo')
1887
1887
@@ -1979,7 +1979,7 b' def debugindexdot(ui, repo, file_):'
1979 r = filelog
1979 r = filelog
1980 if not r:
1980 if not r:
1981 r = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), file_)
1981 r = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), file_)
1982 ui.write("digraph G {\n")
1982 ui.write(("digraph G {\n"))
1983 for i in r:
1983 for i in r:
1984 node = r.node(i)
1984 node = r.node(i)
1985 pp = r.parents(node)
1985 pp = r.parents(node)
@@ -2325,52 +2325,54 b' def debugrevlog(ui, repo, file_ = None, '
2325 def pcfmt(value, total):
2325 def pcfmt(value, total):
2326 return (value, 100 * float(value) / total)
2326 return (value, 100 * float(value) / total)
2327
2327
2328 ui.write('format : %d\n' % format)
2328 ui.write(('format : %d\n') % format)
2329 ui.write('flags : %s\n' % ', '.join(flags))
2329 ui.write(('flags : %s\n') % ', '.join(flags))
2330
2330
2331 ui.write('\n')
2331 ui.write('\n')
2332 fmt = pcfmtstr(totalsize)
2332 fmt = pcfmtstr(totalsize)
2333 fmt2 = dfmtstr(totalsize)
2333 fmt2 = dfmtstr(totalsize)
2334 ui.write('revisions : ' + fmt2 % numrevs)
2334 ui.write(('revisions : ') + fmt2 % numrevs)
2335 ui.write(' merges : ' + fmt % pcfmt(nummerges, numrevs))
2335 ui.write((' merges : ') + fmt % pcfmt(nummerges, numrevs))
2336 ui.write(' normal : ' + fmt % pcfmt(numrevs - nummerges, numrevs))
2336 ui.write((' normal : ') + fmt % pcfmt(numrevs - nummerges, numrevs))
2337 ui.write('revisions : ' + fmt2 % numrevs)
2337 ui.write(('revisions : ') + fmt2 % numrevs)
2338 ui.write(' full : ' + fmt % pcfmt(numfull, numrevs))
2338 ui.write((' full : ') + fmt % pcfmt(numfull, numrevs))
2339 ui.write(' deltas : ' + fmt % pcfmt(numdeltas, numrevs))
2339 ui.write((' deltas : ') + fmt % pcfmt(numdeltas, numrevs))
2340 ui.write('revision size : ' + fmt2 % totalsize)
2340 ui.write(('revision size : ') + fmt2 % totalsize)
2341 ui.write(' full : ' + fmt % pcfmt(fulltotal, totalsize))
2341 ui.write((' full : ') + fmt % pcfmt(fulltotal, totalsize))
2342 ui.write(' deltas : ' + fmt % pcfmt(deltatotal, totalsize))
2342 ui.write((' deltas : ') + fmt % pcfmt(deltatotal, totalsize))
2343
2343
2344 ui.write('\n')
2344 ui.write('\n')
2345 fmt = dfmtstr(max(avgchainlen, compratio))
2345 fmt = dfmtstr(max(avgchainlen, compratio))
2346 ui.write('avg chain length : ' + fmt % avgchainlen)
2346 ui.write(('avg chain length : ') + fmt % avgchainlen)
2347 ui.write('compression ratio : ' + fmt % compratio)
2347 ui.write(('compression ratio : ') + fmt % compratio)
2348
2348
2349 if format > 0:
2349 if format > 0:
2350 ui.write('\n')
2350 ui.write('\n')
2351 ui.write('uncompressed data size (min/max/avg) : %d / %d / %d\n'
2351 ui.write(('uncompressed data size (min/max/avg) : %d / %d / %d\n')
2352 % tuple(datasize))
2352 % tuple(datasize))
2353 ui.write('full revision size (min/max/avg) : %d / %d / %d\n'
2353 ui.write(('full revision size (min/max/avg) : %d / %d / %d\n')
2354 % tuple(fullsize))
2354 % tuple(fullsize))
2355 ui.write('delta size (min/max/avg) : %d / %d / %d\n'
2355 ui.write(('delta size (min/max/avg) : %d / %d / %d\n')
2356 % tuple(deltasize))
2356 % tuple(deltasize))
2357
2357
2358 if numdeltas > 0:
2358 if numdeltas > 0:
2359 ui.write('\n')
2359 ui.write('\n')
2360 fmt = pcfmtstr(numdeltas)
2360 fmt = pcfmtstr(numdeltas)
2361 fmt2 = pcfmtstr(numdeltas, 4)
2361 fmt2 = pcfmtstr(numdeltas, 4)
2362 ui.write('deltas against prev : ' + fmt % pcfmt(numprev, numdeltas))
2362 ui.write(('deltas against prev : ') + fmt % pcfmt(numprev, numdeltas))
2363 if numprev > 0:
2363 if numprev > 0:
2364 ui.write(' where prev = p1 : ' + fmt2 % pcfmt(nump1prev,
2364 ui.write((' where prev = p1 : ') + fmt2 % pcfmt(nump1prev,
2365 numprev))
2365 numprev))
2366 ui.write(' where prev = p2 : ' + fmt2 % pcfmt(nump2prev,
2366 ui.write((' where prev = p2 : ') + fmt2 % pcfmt(nump2prev,
2367 numprev))
2367 numprev))
2368 ui.write(' other : ' + fmt2 % pcfmt(numoprev,
2368 ui.write((' other : ') + fmt2 % pcfmt(numoprev,
2369 numprev))
2369 numprev))
2370 if gdelta:
2370 if gdelta:
2371 ui.write('deltas against p1 : ' + fmt % pcfmt(nump1, numdeltas))
2371 ui.write(('deltas against p1 : ')
2372 ui.write('deltas against p2 : ' + fmt % pcfmt(nump2, numdeltas))
2372 + fmt % pcfmt(nump1, numdeltas))
2373 ui.write('deltas against other : ' + fmt % pcfmt(numother,
2373 ui.write(('deltas against p2 : ')
2374 + fmt % pcfmt(nump2, numdeltas))
2375 ui.write(('deltas against other : ') + fmt % pcfmt(numother,
2374 numdeltas))
2376 numdeltas))
2375
2377
2376 @command('debugrevspec', [], ('REVSPEC'))
2378 @command('debugrevspec', [], ('REVSPEC'))
@@ -2448,9 +2450,9 b' def debugstate(ui, repo, nodates=None, d'
2448 def debugsub(ui, repo, rev=None):
2450 def debugsub(ui, repo, rev=None):
2449 ctx = scmutil.revsingle(repo, rev, None)
2451 ctx = scmutil.revsingle(repo, rev, None)
2450 for k, v in sorted(ctx.substate.items()):
2452 for k, v in sorted(ctx.substate.items()):
2451 ui.write('path %s\n' % k)
2453 ui.write(('path %s\n') % k)
2452 ui.write(' source %s\n' % v[0])
2454 ui.write((' source %s\n') % v[0])
2453 ui.write(' revision %s\n' % v[1])
2455 ui.write((' revision %s\n') % v[1])
2454
2456
2455 @command('debugwalk', walkopts, _('[OPTION]... [FILE]...'))
2457 @command('debugwalk', walkopts, _('[OPTION]... [FILE]...'))
2456 def debugwalk(ui, repo, *pats, **opts):
2458 def debugwalk(ui, repo, *pats, **opts):
@@ -35,7 +35,7 b' def autodiff(ui, repo, *pats, **opts):'
35 for chunk in it:
35 for chunk in it:
36 ui.write(chunk)
36 ui.write(chunk)
37 for fn in sorted(brokenfiles):
37 for fn in sorted(brokenfiles):
38 ui.write('data lost for: %s\n' % fn)
38 ui.write(('data lost for: %s\n' % fn))
39
39
40 cmdtable = {
40 cmdtable = {
41 "autodiff":
41 "autodiff":
@@ -8,160 +8,3 b''
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 hgext/convert/cvsps.py:0:
12 > ui.write('Ancestors: %s\n' % (','.join(r)))
13 warning: unwrapped ui message
14 hgext/convert/cvsps.py:0:
15 > ui.write('Parent: %d\n' % cs.parents[0].id)
16 warning: unwrapped ui message
17 hgext/convert/cvsps.py:0:
18 > ui.write('Parents: %s\n' %
19 warning: unwrapped ui message
20 hgext/convert/cvsps.py:0:
21 > ui.write('Branchpoints: %s \n' % ', '.join(branchpoints))
22 warning: unwrapped ui message
23 hgext/convert/cvsps.py:0:
24 > ui.write('Author: %s\n' % cs.author)
25 warning: unwrapped ui message
26 hgext/convert/cvsps.py:0:
27 > ui.write('Branch: %s\n' % (cs.branch or 'HEAD'))
28 warning: unwrapped ui message
29 hgext/convert/cvsps.py:0:
30 > ui.write('Date: %s\n' % util.datestr(cs.date,
31 warning: unwrapped ui message
32 hgext/convert/cvsps.py:0:
33 > ui.write('Log:\n')
34 warning: unwrapped ui message
35 hgext/convert/cvsps.py:0:
36 > ui.write('Members: \n')
37 warning: unwrapped ui message
38 hgext/convert/cvsps.py:0:
39 > ui.write('PatchSet %d \n' % cs.id)
40 warning: unwrapped ui message
41 hgext/convert/cvsps.py:0:
42 > ui.write('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1],
43 warning: unwrapped ui message
44 hgext/hgk.py:0:
45 > ui.write("parent %s\n" % p)
46 warning: unwrapped ui message
47 hgext/hgk.py:0:
48 > ui.write('k=%s\nv=%s\n' % (name, value))
49 warning: unwrapped ui message
50 hgext/hgk.py:0:
51 > ui.write("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1]))
52 warning: unwrapped ui message
53 hgext/hgk.py:0:
54 > ui.write("branch %s\n\n" % ctx.branch())
55 warning: unwrapped ui message
56 hgext/hgk.py:0:
57 > ui.write("committer %s %s %s\n" % (committer, int(date[0]), date[1]))
58 warning: unwrapped ui message
59 hgext/hgk.py:0:
60 > ui.write("revision %d\n" % ctx.rev())
61 warning: unwrapped ui message
62 hgext/hgk.py:0:
63 > ui.write("tree %s\n" % short(ctx.changeset()[0]))
64 warning: unwrapped ui message
65 hgext/patchbomb.py:0:
66 > ui.write('Subject: %s\n' % subj)
67 warning: unwrapped ui message
68 hgext/patchbomb.py:0:
69 > ui.write('From: %s\n' % sender)
70 warning: unwrapped ui message
71 mercurial/commands.py:0:
72 > ui.note('branch %s\n' % data)
73 warning: unwrapped ui message
74 mercurial/commands.py:0:
75 > ui.note('node %s\n' % str(data))
76 warning: unwrapped ui message
77 mercurial/commands.py:0:
78 > ui.note('tag %s\n' % name)
79 warning: unwrapped ui message
80 mercurial/commands.py:0:
81 > ui.write("unpruned common: %s\n" % " ".join([short(n)
82 warning: unwrapped ui message
83 mercurial/commands.py:0:
84 > ui.write("format: id, p1, p2, cset, delta base, len(delta)\n")
85 warning: unwrapped ui message
86 mercurial/commands.py:0:
87 > ui.write("local is subset\n")
88 warning: unwrapped ui message
89 mercurial/commands.py:0:
90 > ui.write("remote is subset\n")
91 warning: unwrapped ui message
92 mercurial/commands.py:0:
93 > ui.write('deltas against other : ' + fmt % pcfmt(numother,
94 warning: unwrapped ui message
95 mercurial/commands.py:0:
96 > ui.write('deltas against p1 : ' + fmt % pcfmt(nump1, numdeltas))
97 warning: unwrapped ui message
98 mercurial/commands.py:0:
99 > ui.write('deltas against p2 : ' + fmt % pcfmt(nump2, numdeltas))
100 warning: unwrapped ui message
101 mercurial/commands.py:0:
102 > ui.write("common heads: %s\n" % " ".join([short(n) for n in common]))
103 warning: unwrapped ui message
104 mercurial/commands.py:0:
105 > ui.write("match: %s\n" % m(d[0]))
106 warning: unwrapped ui message
107 mercurial/commands.py:0:
108 > ui.write('deltas against prev : ' + fmt % pcfmt(numprev, numdeltas))
109 warning: unwrapped ui message
110 mercurial/commands.py:0:
111 > ui.write('path %s\n' % k)
112 warning: unwrapped ui message
113 mercurial/commands.py:0:
114 > ui.write('uncompressed data size (min/max/avg) : %d / %d / %d\n'
115 warning: unwrapped ui message
116 mercurial/commands.py:0:
117 > ui.write("digraph G {\n")
118 warning: unwrapped ui message
119 mercurial/commands.py:0:
120 > ui.write("internal: %s %s\n" % d)
121 warning: unwrapped ui message
122 mercurial/commands.py:0:
123 > ui.write("standard: %s\n" % util.datestr(d))
124 warning: unwrapped ui message
125 mercurial/commands.py:0:
126 > ui.write('avg chain length : ' + fmt % avgchainlen)
127 warning: unwrapped ui message
128 mercurial/commands.py:0:
129 > ui.write('case-sensitive: %s\n' % (util.checkcase('.debugfsinfo')
130 warning: unwrapped ui message
131 mercurial/commands.py:0:
132 > ui.write('compression ratio : ' + fmt % compratio)
133 warning: unwrapped ui message
134 mercurial/commands.py:0:
135 > ui.write('delta size (min/max/avg) : %d / %d / %d\n'
136 warning: unwrapped ui message
137 mercurial/commands.py:0:
138 > ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no'))
139 warning: unwrapped ui message
140 mercurial/commands.py:0:
141 > ui.write('flags : %s\n' % ', '.join(flags))
142 warning: unwrapped ui message
143 mercurial/commands.py:0:
144 > ui.write('format : %d\n' % format)
145 warning: unwrapped ui message
146 mercurial/commands.py:0:
147 > ui.write('full revision size (min/max/avg) : %d / %d / %d\n'
148 warning: unwrapped ui message
149 mercurial/commands.py:0:
150 > ui.write('revision size : ' + fmt2 % totalsize)
151 warning: unwrapped ui message
152 mercurial/commands.py:0:
153 > ui.write('revisions : ' + fmt2 % numrevs)
154 warning: unwrapped ui message
155 warning: unwrapped ui message
156 mercurial/commands.py:0:
157 > ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no'))
158 warning: unwrapped ui message
159 tests/autodiff.py:0:
160 > ui.write('data lost for: %s\n' % fn)
161 warning: unwrapped ui message
162 tests/test-ui-color.py:0:
163 > testui.warn('warning\n')
164 warning: unwrapped ui message
165 tests/test-ui-color.py:0:
166 > testui.write('buffered\n')
167 warning: unwrapped ui message
@@ -5,8 +5,8 b' from mercurial import dispatch, ui'
5 # ensure errors aren't buffered
5 # ensure errors aren't buffered
6 testui = color.colorui()
6 testui = color.colorui()
7 testui.pushbuffer()
7 testui.pushbuffer()
8 testui.write('buffered\n')
8 testui.write(('buffered\n'))
9 testui.warn('warning\n')
9 testui.warn(('warning\n'))
10 testui.write_err('error\n')
10 testui.write_err('error\n')
11 print repr(testui.popbuffer())
11 print repr(testui.popbuffer())
12
12
General Comments 0
You need to be logged in to leave comments. Login now