equal
deleted
inserted
replaced
103 0:1f7b0de80e11 |
103 0:1f7b0de80e11 |
104 |
104 |
105 chg waits for pager if runcommand raises |
105 chg waits for pager if runcommand raises |
106 |
106 |
107 $ cat > $TESTTMP/crash.py <<EOF |
107 $ cat > $TESTTMP/crash.py <<EOF |
108 > from mercurial import cmdutil |
108 > from mercurial import registrar |
109 > cmdtable = {} |
109 > cmdtable = {} |
110 > command = cmdutil.command(cmdtable) |
110 > command = registrar.command(cmdtable) |
111 > @command('crash') |
111 > @command('crash') |
112 > def pagercrash(ui, repo, *pats, **opts): |
112 > def pagercrash(ui, repo, *pats, **opts): |
113 > ui.write('going to crash\n') |
113 > ui.write('going to crash\n') |
114 > raise Exception('.') |
114 > raise Exception('.') |
115 > EOF |
115 > EOF |