equal
deleted
inserted
replaced
1 |
1 |
2 $ cat > adddrop.py <<EOF |
2 $ cat > adddrop.py <<EOF |
3 > from mercurial import cmdutil |
3 > from mercurial import registrar |
4 > cmdtable = {} |
4 > cmdtable = {} |
5 > command = cmdutil.command(cmdtable) |
5 > command = registrar.command(cmdtable) |
6 > @command('debugadddrop', |
6 > @command('debugadddrop', |
7 > [('', 'drop', False, 'drop file from dirstate', 'FILE'), |
7 > [('', 'drop', False, 'drop file from dirstate', 'FILE'), |
8 > ('', 'normal-lookup', False, 'add file to dirstate', 'FILE')], |
8 > ('', 'normal-lookup', False, 'add file to dirstate', 'FILE')], |
9 > 'hg debugadddrop') |
9 > 'hg debugadddrop') |
10 > def debugadddrop(ui, repo, *pats, **opts): |
10 > def debugadddrop(ui, repo, *pats, **opts): |