tests/test-encoding-align.t
changeset 33109 fce4ed2912bb
parent 32376 46ba2cdda476
child 33262 8e6f4939a69a
equal deleted inserted replaced
33108:d9962854a4a2 33109:fce4ed2912bb
    18   > f = file('showoptlist.py', 'w'); f.write("""# encoding: utf-8
    18   > f = file('showoptlist.py', 'w'); f.write("""# encoding: utf-8
    19   > from mercurial import registrar
    19   > from mercurial import registrar
    20   > cmdtable = {}
    20   > cmdtable = {}
    21   > command = registrar.command(cmdtable)
    21   > command = registrar.command(cmdtable)
    22   > 
    22   > 
    23   > @command('showoptlist',
    23   > @command(b'showoptlist',
    24   >     [('s', 'opt1', '', 'short width'  + ' %(s)s' * 8, '%(s)s'),
    24   >     [('s', 'opt1', '', 'short width'  + ' %(s)s' * 8, '%(s)s'),
    25   >     ('m', 'opt2', '', 'middle width' + ' %(m)s' * 8, '%(m)s'),
    25   >     ('m', 'opt2', '', 'middle width' + ' %(m)s' * 8, '%(m)s'),
    26   >     ('l', 'opt3', '', 'long width'   + ' %(l)s' * 8, '%(l)s')],
    26   >     ('l', 'opt3', '', 'long width'   + ' %(l)s' * 8, '%(l)s')],
    27   >     '')
    27   >     '')
    28   > def showoptlist(ui, repo, *pats, **opts):
    28   > def showoptlist(ui, repo, *pats, **opts):