[PATCH 3 of 5] pager: skip uisetup if chg is detected

Yuya Nishihara yuya at tcha.org
Tue Mar 15 12:10:51 EDT 2016


On Tue, 15 Mar 2016 01:26:10 +0000, Jun Wu wrote:
> On 03/14/2016 08:33 PM, Jun Wu wrote:
> > +    if 'chgunix' in dispatch._earlygetopt('--cmdserver', sys.argv):
> 
> Sorry but this is incorrect. _earlygetopt requires an array. It should be:
> 
>  > +    if 'chgunix' in dispatch._earlygetopt(['--cmdserver'], sys.argv):

and _earlygetopt() modifies sys.argv, which is wrong.


More information about the Mercurial-devel mailing list