equal
deleted
inserted
replaced
1476 > |
1476 > |
1477 > cmdtable = {} |
1477 > cmdtable = {} |
1478 > command = registrar.command(cmdtable) |
1478 > command = registrar.command(cmdtable) |
1479 > @command(b"amendtransient",[], _(b'hg amendtransient [rev]')) |
1479 > @command(b"amendtransient",[], _(b'hg amendtransient [rev]')) |
1480 > def amend(ui, repo, *pats, **opts): |
1480 > def amend(ui, repo, *pats, **opts): |
1481 > opts = pycompat.byteskwargs(opts) |
1481 > opts['message'] = b'Test' |
1482 > opts[b'message'] = b'Test' |
1482 > opts['logfile'] = None |
1483 > opts[b'logfile'] = None |
|
1484 > cmdutil.amend(ui, repo, repo[b'.'], {}, pats, opts) |
1483 > cmdutil.amend(ui, repo, repo[b'.'], {}, pats, opts) |
1485 > ui.write(b'%s\n' % stringutil.pprint(repo.changelog.headrevs())) |
1484 > ui.write(b'%s\n' % stringutil.pprint(repo.changelog.headrevs())) |
1486 > EOF |
1485 > EOF |
1487 $ cat >> $HGRCPATH << EOF |
1486 $ cat >> $HGRCPATH << EOF |
1488 > [extensions] |
1487 > [extensions] |