[PATCH 1 of 3 V2] chg: fallback to original hg for some unsupported commands or flags

Jun Wu quark at fb.com
Sat Feb 27 12:34:21 EST 2016


On 02/27/2016 07:37 AM, Yuya Nishihara wrote:
> I want to make them just work instead.

The problem here is you don't know all the flags and how many values
should be after each of them.

> I'm not sure if we should set argv[0] to hgcmd. And it can exec chg
> infinitely as it isn't guarded by CHGINTERNALMARK.

I think it only affects argv[0] and hg does not use it so it's safe.

> Fixed as isunsupported(argc - 1, argv + 1).

Oops. I should be more careful. Thanks!


More information about the Mercurial-devel mailing list