[issue3225] pager extension loses return codes

Matt Mackall bugs at mercurial.selenic.com
Sun Jan 29 14:48:33 CST 2012


New submission from Matt Mackall <mpm at selenic.com>:

Without pager:

$ hg in; echo $?
comparing with http://hg.intevation.org/mercurial/crew/
searching for changes
no changes found
1

With pager:
$ hg in; echo $?
comparing with http://hg.intevation.org/mercurial/crew/
searching for changes
no changes found
0

This is because the pager extension replaces the current process with the
pager itself and runs the command in a fork.

----------
messages: 18764
nosy: brodie, mpm
priority: bug
status: unread
title: pager extension loses return codes

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3225>
____________________________________________________


More information about the Mercurial-devel mailing list