tests/test-rebuildstate.t
changeset 38077 74c5ddd97008
parent 33097 fce4ed2912bb
child 39760 7e99b02768ef
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: