comparison tests/test-rebuildstate.t @ 38077:74c5ddd97008

py3: add b'' prefixes in tests/test-rebuildstate.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3601
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:33:36 +0530
parents fce4ed2912bb
children 7e99b02768ef
comparison
equal deleted inserted replaced
38076:34592dd3bfa2 38077:74c5ddd97008
2 $ cat > adddrop.py <<EOF 2 $ cat > adddrop.py <<EOF
3 > from mercurial import registrar 3 > from mercurial import registrar
4 > cmdtable = {} 4 > cmdtable = {}
5 > command = registrar.command(cmdtable) 5 > command = registrar.command(cmdtable)
6 > @command(b'debugadddrop', 6 > @command(b'debugadddrop',
7 > [('', 'drop', False, 'drop file from dirstate', 'FILE'), 7 > [(b'', b'drop', False, b'drop file from dirstate', b'FILE'),
8 > ('', 'normal-lookup', False, 'add file to dirstate', 'FILE')], 8 > (b'', b'normal-lookup', False, b'add file to dirstate', b'FILE')],
9 > 'hg debugadddrop') 9 > b'hg debugadddrop')
10 > def debugadddrop(ui, repo, *pats, **opts): 10 > def debugadddrop(ui, repo, *pats, **opts):
11 > '''Add or drop unnamed arguments to or from the dirstate''' 11 > '''Add or drop unnamed arguments to or from the dirstate'''
12 > drop = opts.get('drop') 12 > drop = opts.get('drop')
13 > nl = opts.get('normal_lookup') 13 > nl = opts.get('normal_lookup')
14 > if nl and drop: 14 > if nl and drop: